mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 05:45:36 +03:00
Work around for amb1632 - can't completely fix due to float rounding issues that don't work too well with pawn's floatround
This commit is contained in:
parent
6d03b29963
commit
6a4318f4d1
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user