Fixed respawn bug (#15868)

This commit is contained in:
freeze2222
2023-04-28 22:47:26 +03:00
committed by GitHub
parent e42a4aa0d7
commit 1f54d75171

View 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);