check was neccesary for maps with just an end zone

This commit is contained in:
jenzur 2019-08-04 14:42:17 +02:00
parent 24a3a21d55
commit 78c5249987

View File

@ -129,12 +129,16 @@ public void Event_RoundStart(Handle event, const char[] name, bool dontBroadcast
{ {
g_iRoundMinutes = 0; g_iRoundMinutes = 0;
g_fRoundSeconds = 0.0; g_fRoundSeconds = 0.0;
int l_iZoneCount = unloze_zoneCount();
for (int i = 1; i <= MaxClients; i++) for (int i = 1; i <= MaxClients; i++)
if (IsValidClient(i)) if (IsValidClient(i))
{ {
MYSQLCheckRecord(i); MYSQLCheckRecord(i);
g_bHumansAllowedTime[i] = false; if (l_iZoneCount != 1)
} g_bHumansAllowedTime[i] = false;
else
g_bHumansAllowedTime[i] = true;
}
} }
//---------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------
// Purpose: // Purpose: