Restart votes now default to no.

This commit is contained in:
Pieter-Jan Briers
2021-07-21 15:24:43 +02:00
parent 4259bc6806
commit 3a6ad88b39
2 changed files with 13 additions and 0 deletions

View File

@@ -61,6 +61,15 @@ namespace Content.Server.Voting.Managers
// Cast yes vote if created the vote yourself.
vote.CastVote(initiator, 0);
}
foreach (var player in _playerManager.GetAllPlayers())
{
if (player != initiator)
{
// Everybody else defaults to a no vote.
vote.CastVote(player, 1);
}
}
}
public void CreatePresetVote(IPlayerSession? initiator)