mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
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:
parent
2060bcfa0a
commit
d733df207f
@ -144,7 +144,6 @@ class CivilizationInfo {
|
||||
fun getStatMapForNextTurn(): HashMap<String, Stats> {
|
||||
val statMap = HashMap<String,Stats>()
|
||||
for (city in cities){
|
||||
val statBonuses = Stats()
|
||||
if(!statMap.containsKey("Cities")) statMap["Cities"]=Stats()
|
||||
statMap["Cities"] = statMap["Cities"]!! + city.cityStats.currentCityStats
|
||||
}
|
||||
|
@ -269,6 +269,7 @@ class WorldScreen : CameraStageBaseScreen() {
|
||||
updateNextTurnButton()
|
||||
}
|
||||
}
|
||||
else nextTurnButton.enable() // Enable immediately
|
||||
|
||||
// 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user