Don't show Station Event announcements to players in the lobby. (#30886)

* Don't show Station Event announcements to players in the lobby.

* fix pr

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Mervill
2024-08-10 23:09:33 -07:00
committed by GitHub
parent 8d72e7d932
commit d7b5ae061a
3 changed files with 52 additions and 8 deletions

View File

@@ -179,5 +179,11 @@ namespace Content.Server.GameTicking
// update server info to reflect new ready count
UpdateInfoText();
}
public bool UserHasJoinedGame(ICommonSession session)
=> UserHasJoinedGame(session.UserId);
public bool UserHasJoinedGame(NetUserId userId)
=> PlayerGameStatuses[userId] == PlayerGameStatus.JoinedGame;
}
}