We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61961d8 commit a7f5e4aCopy full SHA for a7f5e4a
1 file changed
AssettoServer/Server/VoteManager.cs
@@ -108,8 +108,8 @@ private byte GetQuorum(VoteType voteType)
108
{
109
return voteType switch
110
111
- VoteType.KickPlayer => (byte)(_configuration.Server.KickQuorum / 100f * (_entryCarManager.ConnectedCars.Count - 1)),
112
- _ => (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),
113
};
114
}
115
0 commit comments