Fixed players without headrevs ticked being picked anyway (#20895)

* Fixy fix fix uwu merge pwease

* admin message to inform them

* oop
This commit is contained in:
Vasilis
2023-10-19 05:48:55 +02:00
committed by GitHub
parent 3e32e75737
commit e04d6a312c
4 changed files with 12 additions and 4 deletions

View File

@@ -116,14 +116,13 @@ public sealed class AntagSelectionSystem : GameRuleSystem<GameRuleComponent>
var antags = Math.Clamp(allPlayers.Count / antagsPerPlayer, 1, maxAntags);
for (var antag = 0; antag < antags; antag++)
{
IPlayerSession chosenPlayer;
IPlayerSession chosenPlayer = null!;
if (prefList.Count == 0)
{
if (playerList.Count == 0)
{
break;
}
chosenPlayer = _random.PickAndTake(playerList);
}
else
{