Skip spectator turn in multiplayer games (#2873)

This commit is contained in:
Alexander Korolyov 2020-07-22 09:43:03 +02:00 committed by GitHub
parent 1c613ac274
commit 7d360e5fa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,9 +93,9 @@ class GameInfo {
while (thisPlayer.playerType == PlayerType.AI
|| turns < UncivGame.Current.simulateUntilTurnForDebug
|| (turns < simulateMaxTurns && simulateUntilWin)
// For multiplayer, if there are 3+ players and one is defeated,
// For multiplayer, if there are 3+ players and one is defeated or spectator,
// we'll want to skip over their turn
|| (thisPlayer.isDefeated() && gameParameters.isOnlineMultiplayer)
|| ((thisPlayer.isDefeated() || thisPlayer.isSpectator()) && gameParameters.isOnlineMultiplayer)
) {
if (!thisPlayer.isDefeated() || thisPlayer.isBarbarian()) {
NextTurnAutomation.automateCivMoves(thisPlayer)