From b324e8ed9d37ceffbf198a0df2bca55d996d3b81 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Fri, 26 Jan 2007 06:15:49 +0000 Subject: [PATCH] Merged revision 3260 from 1.77; Stats would not display on awkward mp_roundtime settings --- plugins/cstrike/miscstats.sma | 2 +- plugins/cstrike/statsx.sma | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/cstrike/miscstats.sma b/plugins/cstrike/miscstats.sma index 0908e76f..ca2f2ec7 100755 --- a/plugins/cstrike/miscstats.sma +++ b/plugins/cstrike/miscstats.sma @@ -566,7 +566,7 @@ public showStatus(id) public eNewRound() { - if (read_data(1) == floatround(get_cvar_float("mp_roundtime") * 60.0)) + if (read_data(1) == floatround(get_cvar_float("mp_roundtime") * 60.0,floatround_floor)) { g_firstBlood = 1 g_C4Timer = 0 diff --git a/plugins/cstrike/statsx.sma b/plugins/cstrike/statsx.sma index d6c7c5f8..0136a817 100755 --- a/plugins/cstrike/statsx.sma +++ b/plugins/cstrike/statsx.sma @@ -1272,7 +1272,7 @@ public eventStartRound() iRoundTime = read_data(1) - if (iRoundTime >= get_cvar_float("mp_roundtime") * 60) + if (read_data(1) == floatround(get_cvar_float("mp_roundtime") * 60.0,floatround_floor)) { #if defined STATSX_DEBUG log_amx("Reset round stats")