mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-12-30 11:52:16 +00:00
persist selection and fix music bug
This commit is contained in:
parent
d74b8d81be
commit
e66f9fd0ff
2 changed files with 6 additions and 1 deletions
|
|
@ -535,6 +535,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);
|
||||
|
|
|
|||
|
|
@ -641,9 +641,11 @@ 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