From 6a4318f4d1aa7c8ede81c1310e8a58d200971842 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Sat, 26 Apr 2008 07:52:59 +0000 Subject: [PATCH] Work around for amb1632 - can't completely fix due to float rounding issues that don't work too well with pawn's floatround --- plugins/cstrike/statsx.sma | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/cstrike/statsx.sma b/plugins/cstrike/statsx.sma index 575b4f8b..ed4d2e09 100755 --- a/plugins/cstrike/statsx.sma +++ b/plugins/cstrike/statsx.sma @@ -1271,7 +1271,8 @@ public eventStartRound() { new iTeam, id, i - if (read_data(1) >= floatround(get_cvar_float("mp_roundtime") * 60.0,floatround_floor)) + new Float:roundtime = get_cvar_float("mp_roundtime"); + if (read_data(1) >= floatround(roundtime * 60.0,floatround_floor) || (roundtime == 2.3 && read_data(1) == 137)) // these round too weird for it to work through pawn, have to add an exception for it { #if defined STATSX_DEBUG log_amx("Reset round stats")