From 241aecb52fa390684e40c412dc81880f875edbb5 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Mon, 22 Feb 2021 23:31:18 +0200 Subject: [PATCH] Maps incompatible with ruleset no longer popup errors when generating a new map --- core/src/com/unciv/ui/newgamescreen/NewGameScreen.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/newgamescreen/NewGameScreen.kt b/core/src/com/unciv/ui/newgamescreen/NewGameScreen.kt index 3e19ef870b..b7fc161428 100644 --- a/core/src/com/unciv/ui/newgamescreen/NewGameScreen.kt +++ b/core/src/com/unciv/ui/newgamescreen/NewGameScreen.kt @@ -9,6 +9,7 @@ import com.unciv.UncivGame import com.unciv.logic.* import com.unciv.logic.civilization.PlayerType import com.unciv.logic.map.MapParameters +import com.unciv.logic.map.MapType import com.unciv.models.metadata.GameParameters import com.unciv.models.ruleset.RulesetCache import com.unciv.models.translations.tr @@ -94,7 +95,7 @@ class NewGameScreen(previousScreen:CameraStageBaseScreen, _gameSetupInfo: GameSe Gdx.input.inputProcessor = null // remove input processing - nothing will be clicked! - if (gameSetupInfo.mapFile != null){ + if (mapOptionsTable.mapTypeSelectBox.selected.value == MapType.custom){ val map = MapSaver.loadMap(gameSetupInfo.mapFile!!) val rulesetIncompatabilities = HashSet() for(tile in map.values) {