mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-19 16:57:38 +07:00
Fixed special case to allow winning player to continue the MP game (#9509)
This commit is contained in:
parent
1c830672ef
commit
b9a916e081
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user