mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-02-20 13:11:02 +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) {
|
||||
#if (js || android)
|
||||
path = StringTools.replace(path, "data/", "");
|
||||
#end
|
||||
if (zipFilesystem.exists(path.toLowerCase()))
|
||||
return true;
|
||||
return fileSystem.exists(path);
|
||||
|
|
|
|||
|
|
@ -642,7 +642,12 @@ class MPPlayMissionGui extends GuiImage {
|
|||
|
||||
currentList = MissionList.missionList["multiplayer"]["beginner"];
|
||||
|
||||
setCategoryFunc(currentCategoryStatic, null, false);
|
||||
// setCategoryFunc(currentCategoryStatic, null, false);
|
||||
if (Net.isHost) {
|
||||
NetCommands.setLobbyLevelIndex(currentCategoryStatic, currentSelectionStatic);
|
||||
} else {
|
||||
setCategoryFunc(currentCategoryStatic, null, false);
|
||||
}
|
||||
updateLobbyNames();
|
||||
redrawChat();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue