rockthevote.sp - RoundToFloor() -> RoundToCeil() (#590)
The reason of update is described here https://forums.alliedmods.net/showthread.php?p=2499471
This commit is contained in:
parent
08238a8036
commit
9d932b47fd
@ -118,7 +118,7 @@ public void OnClientConnected(int client)
|
||||
g_Voted[client] = false;
|
||||
|
||||
g_Voters++;
|
||||
g_VotesNeeded = RoundToFloor(float(g_Voters) * g_Cvar_Needed.FloatValue);
|
||||
g_VotesNeeded = RoundToCeil(float(g_Voters) * g_Cvar_Needed.FloatValue);
|
||||
|
||||
return;
|
||||
}
|
||||
@ -135,7 +135,7 @@ public void OnClientDisconnect(int client)
|
||||
|
||||
g_Voters--;
|
||||
|
||||
g_VotesNeeded = RoundToFloor(float(g_Voters) * g_Cvar_Needed.FloatValue);
|
||||
g_VotesNeeded = RoundToCeil(float(g_Voters) * g_Cvar_Needed.FloatValue);
|
||||
|
||||
if (!g_CanRTV)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user