added extra check to stop the warning timer in case of a map having mce_extend 0 from the get go
This commit is contained in:
parent
386da2e248
commit
09aa1218ac
@ -772,6 +772,13 @@ public void OnMapTimeLeftChanged()
|
||||
|
||||
void SetupTimeleftTimer()
|
||||
{
|
||||
if (g_iNextmapState == 0 && GetConVarInt(g_Cvar_Extend) - g_Extends < 1)
|
||||
{
|
||||
g_iNextmapState = 3;
|
||||
//map simply had no extend to begin with. mce_extend 0.
|
||||
//encap made me notice that maps without extends would still incorrectly do the setup Timeleft Timer() call.
|
||||
}
|
||||
|
||||
if (g_iNextmapState != 0)
|
||||
{
|
||||
if (g_VoteTimer != INVALID_HANDLE)
|
||||
|
Loading…
Reference in New Issue
Block a user