From: freeze2222 <46649391+freeze2222@users.noreply.github.com> Date: Fri, 28 Apr 2023 19:47:26 +0000 (+0300) Subject: Fixed respawn bug (#15868) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=1f54d75171914d5fbc7797b50c959610ed6fec9b;p=space-station-14.git Fixed respawn bug (#15868) --- diff --git a/Content.Server/GameTicking/GameTicker.Lobby.cs b/Content.Server/GameTicking/GameTicker.Lobby.cs index 0ef3ba85c4..18d481748a 100644 --- a/Content.Server/GameTicking/GameTicker.Lobby.cs +++ b/Content.Server/GameTicking/GameTicker.Lobby.cs @@ -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);