Skip to content

Commit a7f5e4a

Browse files
authored
fixed a stupid mistake for vote calc (#91)
1 parent 61961d8 commit a7f5e4a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

AssettoServer/Server/VoteManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ private byte GetQuorum(VoteType voteType)
108108
{
109109
return voteType switch
110110
{
111-
VoteType.KickPlayer => (byte)(_configuration.Server.KickQuorum / 100f * (_entryCarManager.ConnectedCars.Count - 1)),
112-
_ => (byte)(_configuration.Server.VotingQuorum / 100f * _entryCarManager.ConnectedCars.Count),
111+
VoteType.KickPlayer => (byte)Math.Ceiling(_configuration.Server.KickQuorum / 100f * (_entryCarManager.ConnectedCars.Count - 1)),
112+
_ => (byte)Math.Ceiling(_configuration.Server.VotingQuorum / 100f * _entryCarManager.ConnectedCars.Count),
113113
};
114114
}
115115
}

0 commit comments

Comments
 (0)