Adjustment to basetriggers.sp to stop sm_timeleft_interval from running when it shouldn't.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401195
This commit is contained in:
Michael McKoy 2007-07-27 03:29:15 +00:00
parent 201c35c501
commit 8556c6925d

View File

@ -62,9 +62,13 @@ public ConVarChange_TimeleftInterval(Handle:convar, const String:oldValue[], con
{
new Float:newval = StringToFloat(newValue);
if (newval < 1.0 && g_Timer_TimeShow != INVALID_HANDLE)
if (newval < 1.0)
{
KillTimer(g_Timer_TimeShow);
if (g_Timer_TimeShow != INVALID_HANDLE)
{
KillTimer(g_Timer_TimeShow);
}
return;
}