persist selection and fix music bug

This commit is contained in:
RandomityGuy 2024-07-14 23:42:02 +05:30
parent d74b8d81be
commit e66f9fd0ff
2 changed files with 6 additions and 1 deletions

View file

@ -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);

View file

@ -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();