mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-26 12:41:40 +00:00
persist selection and fix music bug
This commit is contained in:
parent
fb215850a7
commit
f4e99b30f0
2 changed files with 9 additions and 1 deletions
|
|
@ -537,6 +537,9 @@ class ResourceLoader {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function exists(path:String) {
|
public static function exists(path:String) {
|
||||||
|
#if (js || android)
|
||||||
|
path = StringTools.replace(path, "data/", "");
|
||||||
|
#end
|
||||||
if (zipFilesystem.exists(path.toLowerCase()))
|
if (zipFilesystem.exists(path.toLowerCase()))
|
||||||
return true;
|
return true;
|
||||||
return fileSystem.exists(path);
|
return fileSystem.exists(path);
|
||||||
|
|
|
||||||
|
|
@ -642,7 +642,12 @@ class MPPlayMissionGui extends GuiImage {
|
||||||
|
|
||||||
currentList = MissionList.missionList["multiplayer"]["beginner"];
|
currentList = MissionList.missionList["multiplayer"]["beginner"];
|
||||||
|
|
||||||
|
// setCategoryFunc(currentCategoryStatic, null, false);
|
||||||
|
if (Net.isHost) {
|
||||||
|
NetCommands.setLobbyLevelIndex(currentCategoryStatic, currentSelectionStatic);
|
||||||
|
} else {
|
||||||
setCategoryFunc(currentCategoryStatic, null, false);
|
setCategoryFunc(currentCategoryStatic, null, false);
|
||||||
|
}
|
||||||
updateLobbyNames();
|
updateLobbyNames();
|
||||||
redrawChat();
|
redrawChat();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue