Add an exception to the soft max player cap for players who joined the game at some point during the current round. (#6245)
This commit is contained in:
@@ -16,6 +16,8 @@ namespace Content.Server.GameTicking
|
||||
[ViewVariables]
|
||||
private readonly Dictionary<IPlayerSession, LobbyPlayerStatus> _playersInLobby = new();
|
||||
|
||||
[ViewVariables] private readonly HashSet<NetUserId> _playersInGame = new();
|
||||
|
||||
[ViewVariables]
|
||||
private TimeSpan _roundStartTime;
|
||||
|
||||
@@ -29,6 +31,7 @@ namespace Content.Server.GameTicking
|
||||
private bool _roundStartCountdownHasNotStartedYetDueToNoPlayers;
|
||||
|
||||
public IReadOnlyDictionary<IPlayerSession, LobbyPlayerStatus> PlayersInLobby => _playersInLobby;
|
||||
public IReadOnlySet<NetUserId> PlayersInGame => _playersInGame;
|
||||
|
||||
private void UpdateInfoText()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user