Skip to content

Commit

Permalink
Merge pull request #46 from B3none/update-round-team-calculations
Browse files Browse the repository at this point in the history
Calculate RoundTeams from active players. not all players
  • Loading branch information
B3none authored Jan 22, 2024
2 parents 70d197e + 39d36d8 commit 155ad53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/Managers/QueueManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,9 @@ public void ClearRoundTeams()

public void SetRoundTeams()
{
_roundTerrorists = Utilities.GetPlayers()
_roundTerrorists = ActivePlayers
.Where(player => Helpers.IsValidPlayer(player) && player.Team == CsTeam.Terrorist).ToList();
_roundCounterTerrorists = Utilities.GetPlayers()
_roundCounterTerrorists = ActivePlayers
.Where(player => Helpers.IsValidPlayer(player) && player.Team == CsTeam.CounterTerrorist).ToList();
}
}

0 comments on commit 155ad53

Please sign in to comment.