Skip to content

Commit

Permalink
fixed a stupid mistake for vote calc (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisguyStan authored Mar 16, 2024
1 parent 61961d8 commit a7f5e4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AssettoServer/Server/VoteManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ private byte GetQuorum(VoteType voteType)
{
return voteType switch
{
VoteType.KickPlayer => (byte)(_configuration.Server.KickQuorum / 100f * (_entryCarManager.ConnectedCars.Count - 1)),
_ => (byte)(_configuration.Server.VotingQuorum / 100f * _entryCarManager.ConnectedCars.Count),
VoteType.KickPlayer => (byte)Math.Ceiling(_configuration.Server.KickQuorum / 100f * (_entryCarManager.ConnectedCars.Count - 1)),
_ => (byte)Math.Ceiling(_configuration.Server.VotingQuorum / 100f * _entryCarManager.ConnectedCars.Count),
};
}
}
Expand Down

0 comments on commit a7f5e4a

Please sign in to comment.