From d071e57979bc8cdb1a568493fc9f2e983871d305 Mon Sep 17 00:00:00 2001 From: jenz Date: Sun, 17 Sep 2023 00:27:22 +0200 Subject: [PATCH] changed to float to hopefully not accidentally hit over limit of 5.0 --- discord_verificiation/scripting/unloze_player_time.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord_verificiation/scripting/unloze_player_time.sp b/discord_verificiation/scripting/unloze_player_time.sp index 1f48ca07..b771efe5 100644 --- a/discord_verificiation/scripting/unloze_player_time.sp +++ b/discord_verificiation/scripting/unloze_player_time.sp @@ -235,7 +235,7 @@ public int GetPlayerWorthRTV(int client) g_fPlayerRTVWorth[client] = 1.0; return avg; } - if ((g_iPlayerTimeServer[client] / avg) > g_iPlayerRTVCapacity) + if ((float(g_iPlayerTimeServer[client]) / float(avg)) > g_iPlayerRTVCapacity) { g_fPlayerRTVWorth[client] = float(g_iPlayerRTVCapacity); return avg * g_iPlayerRTVCapacity; @@ -246,7 +246,7 @@ public int GetPlayerWorthRTV(int client) public int GetAveragePlayerActiveTimeServerRTV() { - //for rockthevote average we include spectators and afks. just not fakes, nosteamers and autismbots, thats why a different function is made. + //for rockthevote and mapvote average we include spectators and afks. just not fakes, nosteamers and autismbots, thats why a different function is made. int total_hours = 0; int total_players = 0; for (int i = 0; i < MaxClients; i++)