From e71bc978b903bfbcb3039d14081a62f60026b048 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Fri, 18 Oct 2019 09:14:53 +0300 Subject: [PATCH] Fixed "Negative turns to construction" in extreme edge cases --- core/src/com/unciv/logic/city/CityConstructions.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/city/CityConstructions.kt b/core/src/com/unciv/logic/city/CityConstructions.kt index 5fcf4467a9..25fc6ae337 100644 --- a/core/src/com/unciv/logic/city/CityConstructions.kt +++ b/core/src/com/unciv/logic/city/CityConstructions.kt @@ -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