From a7f5e4af5543fc194b72e95c42c19470fc022351 Mon Sep 17 00:00:00 2001 From: Nico <53304086+thisguyStan@users.noreply.github.com> Date: Sat, 16 Mar 2024 18:22:48 +0100 Subject: [PATCH] fixed a stupid mistake for vote calc (#91) --- AssettoServer/Server/VoteManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AssettoServer/Server/VoteManager.cs b/AssettoServer/Server/VoteManager.cs index 54952c10..52244370 100644 --- a/AssettoServer/Server/VoteManager.cs +++ b/AssettoServer/Server/VoteManager.cs @@ -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), }; } }