Fixed special case to allow winning player to continue the MP game (#9509)

This commit is contained in:
Crsi 2023-06-04 07:21:24 +02:00 committed by GitHub
parent 1c830672ef
commit b9a916e081
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -617,8 +617,8 @@ class WorldScreen(
debug("Next turn took %sms", System.currentTimeMillis() - startTime) 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 // Special case: when you are the only alive human player, the game will always be up to date
if (gameInfo.gameParameters.isOnlineMultiplayer && gameInfoClone.civilizations.filter { it.playerType == PlayerType.Human }.size == 1) { if (gameInfo.gameParameters.isOnlineMultiplayer && gameInfoClone.civilizations.filter { it.isAlive() && it.playerType == PlayerType.Human }.size == 1) {
gameInfoClone.isUpToDate = true gameInfoClone.isUpToDate = true
} }