From c4b9bda0165e11c70b7b2374294a854767383cfb Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Sat, 11 Jun 2022 15:09:48 -0700 Subject: [PATCH] check if not pausing before pausing from WaitingForAllPlayersToDie --- QSB/TimeSync/WakeUpSync.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QSB/TimeSync/WakeUpSync.cs b/QSB/TimeSync/WakeUpSync.cs index 9453c536..29abf702 100644 --- a/QSB/TimeSync/WakeUpSync.cs +++ b/QSB/TimeSync/WakeUpSync.cs @@ -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); } -} \ No newline at end of file +}