Removes useless '/' make it doubles in somes cases (#1482)
This commit is contained in:
parent
5512be8f31
commit
bf06ce6340
|
@ -47,11 +47,11 @@ export class SceneBase extends Phaser.Scene {
|
|||
if (folder) {
|
||||
folder += "/";
|
||||
}
|
||||
this.load.atlas(key, this.getCachedUrl(`images/${folder}${filenameRoot}.png`), this.getCachedUrl(`images/${folder}/${filenameRoot}.json`));
|
||||
this.load.atlas(key, this.getCachedUrl(`images/${folder}${filenameRoot}.png`), this.getCachedUrl(`images/${folder}${filenameRoot}.json`));
|
||||
if (folder.startsWith("ui")) {
|
||||
legacyCompatibleImages.push(key);
|
||||
folder = folder.replace("ui", "ui/legacy");
|
||||
this.load.atlas(`${key}_legacy`, this.getCachedUrl(`images/${folder}${filenameRoot}.png`), this.getCachedUrl(`images/${folder}/${filenameRoot}.json`));
|
||||
this.load.atlas(`${key}_legacy`, this.getCachedUrl(`images/${folder}${filenameRoot}.png`), this.getCachedUrl(`images/${folder}${filenameRoot}.json`));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue