]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fixed respawn bug (#15868)
authorfreeze2222 <46649391+freeze2222@users.noreply.github.com>
Fri, 28 Apr 2023 19:47:26 +0000 (22:47 +0300)
committerGitHub <noreply@github.com>
Fri, 28 Apr 2023 19:47:26 +0000 (14:47 -0500)
Content.Server/GameTicking/GameTicker.Lobby.cs

index 0ef3ba85c4b48fd308e326a3d02ada638b123f26..18d481748a48445160d5271d13d50a2aae7dc661 100644 (file)
@@ -173,6 +173,11 @@ namespace Content.Server.GameTicking
             if (!_userDb.IsLoadComplete(player))
                 return;
 
+            if (RunLevel != GameRunLevel.PreRoundLobby)
+            {
+                return;
+            }
+
             var status = ready ? PlayerGameStatus.ReadyToPlay : PlayerGameStatus.NotReadyToPlay;
             _playerGameStatuses[player.UserId] = ready ? PlayerGameStatus.ReadyToPlay : PlayerGameStatus.NotReadyToPlay;
             RaiseNetworkEvent(GetStatusMsg(player), player.ConnectedClient);