Skip to content

Commit

Permalink
--wrong value on check (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
shipyy authored and Bara committed Sep 13, 2022
1 parent a892bf3 commit 82ef2e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/surftimer/api.sp
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@ public int Native_GetStageData(Handle plugin, int numParams)
Format(szname, sizeof(szname), g_szStageRecordPlayer[stage]);
SetNativeString(2, szname, sizeof(szname), true);

if(g_fStageRecord[stage] > 0)
if(g_fStageRecord[stage] != 0.0)
WRtime = g_fStageRecord[stage];
else
WRtime = -1.0;
SetNativeCellRef(3, WRtime);

if(g_fWrcpRecord[client][stage][g_iCurrentStyle[client]] > 0)
if(g_fWrcpRecord[client][stage][g_iCurrentStyle[client]] != -1.0)
PBtime = g_fWrcpRecord[client][stage][g_iCurrentStyle[client]];
else
PBtime = -1.0;
Expand Down

0 comments on commit 82ef2e6

Please sign in to comment.