From 1f54d75171914d5fbc7797b50c959610ed6fec9b Mon Sep 17 00:00:00 2001 From: freeze2222 <46649391+freeze2222@users.noreply.github.com> Date: Fri, 28 Apr 2023 22:47:26 +0300 Subject: [PATCH] Fixed respawn bug (#15868) --- Content.Server/GameTicking/GameTicker.Lobby.cs | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.51.2