Fixed "Negative turns to construction" in extreme edge cases
This commit is contained in:
parent
96281db945
commit
e71bc978b9
1 changed files with 2 additions and 1 deletions
|
@ -124,7 +124,8 @@ class CityConstructions {
|
|||
|
||||
fun turnsToConstruction(constructionName: String): Int {
|
||||
val workLeft = getRemainingWork(constructionName)
|
||||
|
||||
if(workLeft < 0) // we've done more work than actually necessary - possible if circumstances cause buildings to be cheaper later
|
||||
return 1 // we'll finish this next turn
|
||||
|
||||
val currConstruction = currentConstruction
|
||||
|
||||
|
|
Loading…
Reference in a new issue