check if not pausing before pausing from WaitingForAllPlayersToDie

This commit is contained in:
JohnCorby 2022-06-11 15:09:48 -07:00
parent 466917c063
commit c4b9bda016

View File

@ -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);
}
}
}