mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-28 00:19:27 +00:00
check if not pausing before pausing from WaitingForAllPlayersToDie
This commit is contained in:
parent
466917c063
commit
c4b9bda016
@ -373,7 +373,7 @@ public class WakeUpSync : NetworkBehaviour
|
||||
StartPausing(PauseReason.WaitingForAllPlayersToBeReady);
|
||||
}
|
||||
|
||||
if (serverState == ServerState.WaitingForAllPlayersToDie && clientState == ClientState.WaitingForOthersToBeReady)
|
||||
if (serverState == ServerState.WaitingForAllPlayersToDie && CurrentState != State.Pausing && clientState == ClientState.WaitingForOthersToBeReady)
|
||||
{
|
||||
StartPausing(PauseReason.WaitingForAllPlayersToBeReady);
|
||||
}
|
||||
@ -443,4 +443,4 @@ public class WakeUpSync : NetworkBehaviour
|
||||
|
||||
OWTime.SetTimeScale(mappedTimescale);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user