Fixed bug that prevented the "next turn" button from being pressed when the game didn't autosave,

meaning players who picked turns between autosaves manually were screwed
This commit is contained in:
Yair Morgenstern 2019-05-29 21:44:42 +03:00
parent 2060bcfa0a
commit d733df207f
2 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,6 @@ class CivilizationInfo {
fun getStatMapForNextTurn(): HashMap<String, Stats> { fun getStatMapForNextTurn(): HashMap<String, Stats> {
val statMap = HashMap<String,Stats>() val statMap = HashMap<String,Stats>()
for (city in cities){ for (city in cities){
val statBonuses = Stats()
if(!statMap.containsKey("Cities")) statMap["Cities"]=Stats() if(!statMap.containsKey("Cities")) statMap["Cities"]=Stats()
statMap["Cities"] = statMap["Cities"]!! + city.cityStats.currentCityStats statMap["Cities"] = statMap["Cities"]!! + city.cityStats.currentCityStats
} }

View File

@ -269,6 +269,7 @@ class WorldScreen : CameraStageBaseScreen() {
updateNextTurnButton() updateNextTurnButton()
} }
} }
else nextTurnButton.enable() // Enable immediately
// If we put this BEFORE the save game, then we try to save the game... // If we put this BEFORE the save game, then we try to save the game...
// but the main thread does other stuff, including showing tutorials which guess what? Changes the game data // but the main thread does other stuff, including showing tutorials which guess what? Changes the game data