mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 02:46:49 +00:00
Don't filter when a saved game is loading
Filtering the maps sometimes changes the selection. Also it's not required to filter the maps as the setting is already selected and frozen. This reuses the code which is used by campains since there the map might also be frozen. Fixes: #7682
This commit is contained in:
@@ -117,7 +117,7 @@ class GameSettingsController
|
||||
}
|
||||
|
||||
for (const handler of this.settingsLoadedHandlers)
|
||||
handler();
|
||||
handler(isSavedGame);
|
||||
|
||||
this.updateLayout();
|
||||
this.setNetworkInitAttributes();
|
||||
|
||||
+2
-2
@@ -13,9 +13,9 @@ GameSettingControls.MapSelection = class MapSelection extends GameSettingControl
|
||||
};
|
||||
}
|
||||
|
||||
onSettingsLoaded()
|
||||
onSettingsLoaded(isSavedGame)
|
||||
{
|
||||
if (this.gameSettingsController.guiData.lockSettings?.map)
|
||||
if (this.gameSettingsController.guiData.lockSettings?.map || isSavedGame)
|
||||
{
|
||||
if (!g_GameSettings.map)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user