Fixed respawn bug (#15868)
This commit is contained in:
@@ -173,6 +173,11 @@ namespace Content.Server.GameTicking
|
|||||||
if (!_userDb.IsLoadComplete(player))
|
if (!_userDb.IsLoadComplete(player))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (RunLevel != GameRunLevel.PreRoundLobby)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var status = ready ? PlayerGameStatus.ReadyToPlay : PlayerGameStatus.NotReadyToPlay;
|
var status = ready ? PlayerGameStatus.ReadyToPlay : PlayerGameStatus.NotReadyToPlay;
|
||||||
_playerGameStatuses[player.UserId] = ready ? PlayerGameStatus.ReadyToPlay : PlayerGameStatus.NotReadyToPlay;
|
_playerGameStatuses[player.UserId] = ready ? PlayerGameStatus.ReadyToPlay : PlayerGameStatus.NotReadyToPlay;
|
||||||
RaiseNetworkEvent(GetStatusMsg(player), player.ConnectedClient);
|
RaiseNetworkEvent(GetStatusMsg(player), player.ConnectedClient);
|
||||||
|
|||||||
Reference in New Issue
Block a user