changed to float to hopefully not accidentally hit over limit of 5.0
This commit is contained in:
parent
048054d216
commit
d071e57979
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user