Images are restored to ruleset correctly when resuming open game screen

This commit is contained in:
yairm210 2024-09-15 12:22:12 +03:00
parent 29e6b4a720
commit b71b9db197
2 changed files with 1 additions and 2 deletions

View File

@ -245,7 +245,6 @@ open class UncivGame(val isConsoleMode: Boolean = false) : Game(), PlatformSpeci
}
val fullModList = newGameInfo.gameParameters.getModsAndBaseRuleset()
musicController.setModList(fullModList)
settings.tileSet
}
/** Re-creates the current [worldScreen], if there is any. */

View File

@ -287,7 +287,7 @@ class MainMenuScreen: BaseScreen(), RecreateOnResize {
} else {
GUI.resetToWorldScreen()
GUI.getWorldScreen().popups.filterIsInstance<WorldScreenMenuPopup>().forEach(Popup::close)
ImageGetter.ruleset = game.gameInfo!!.ruleset
ImageGetter.setNewRuleset(game.gameInfo!!.ruleset)
}
} else {
QuickSave.autoLoadGame(this)