mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -04:00
Skip spectator turn in multiplayer games (#2873)
This commit is contained in:
parent
1c613ac274
commit
7d360e5fa1
@ -93,9 +93,9 @@ class GameInfo {
|
|||||||
while (thisPlayer.playerType == PlayerType.AI
|
while (thisPlayer.playerType == PlayerType.AI
|
||||||
|| turns < UncivGame.Current.simulateUntilTurnForDebug
|
|| turns < UncivGame.Current.simulateUntilTurnForDebug
|
||||||
|| (turns < simulateMaxTurns && simulateUntilWin)
|
|| (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
|
// we'll want to skip over their turn
|
||||||
|| (thisPlayer.isDefeated() && gameParameters.isOnlineMultiplayer)
|
|| ((thisPlayer.isDefeated() || thisPlayer.isSpectator()) && gameParameters.isOnlineMultiplayer)
|
||||||
) {
|
) {
|
||||||
if (!thisPlayer.isDefeated() || thisPlayer.isBarbarian()) {
|
if (!thisPlayer.isDefeated() || thisPlayer.isBarbarian()) {
|
||||||
NextTurnAutomation.automateCivMoves(thisPlayer)
|
NextTurnAutomation.automateCivMoves(thisPlayer)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user