From 3e4ba83bccbd22eef6d6e32c1eec35b6f40b5a5a Mon Sep 17 00:00:00 2001 From: Crsi <47722349+CrsiX@users.noreply.github.com> Date: Wed, 10 May 2023 21:18:26 +0200 Subject: [PATCH] Added a fix for #7380 to complete a game turn and set upToDate for last human player (#9366) --- core/src/com/unciv/ui/screens/worldscreen/WorldScreen.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/com/unciv/ui/screens/worldscreen/WorldScreen.kt b/core/src/com/unciv/ui/screens/worldscreen/WorldScreen.kt index 2c9dd535de..96897afe69 100644 --- a/core/src/com/unciv/ui/screens/worldscreen/WorldScreen.kt +++ b/core/src/com/unciv/ui/screens/worldscreen/WorldScreen.kt @@ -12,6 +12,7 @@ import com.unciv.UncivGame import com.unciv.logic.GameInfo import com.unciv.logic.UncivShowableException import com.unciv.logic.civilization.Civilization +import com.unciv.logic.civilization.PlayerType import com.unciv.logic.civilization.diplomacy.DiplomaticStatus import com.unciv.logic.event.EventBus import com.unciv.logic.map.MapVisualization @@ -601,6 +602,11 @@ class WorldScreen( debug("Next turn took %sms", System.currentTimeMillis() - startTime) + // Special case: when you are the only human player, the game will always be up to date + if (gameInfo.gameParameters.isOnlineMultiplayer && gameInfoClone.civilizations.filter { it.playerType == PlayerType.Human }.size == 1) { + gameInfoClone.isUpToDate = true + } + startNewScreenJob(gameInfoClone) } }