MCE: small improvement for the NoRestrictionTimeframe

This commit is contained in:
neon 2019-08-18 23:08:23 +02:00
parent 73a77fa919
commit 94d21d45e9

View File

@ -180,6 +180,7 @@ int g_mapOfficialFileSerial = -1;
char g_GameModName[64];
bool g_WarningInProgress = false;
bool g_AddNoVote = false;
bool g_SaveCDOnMapEnd = true;
RoundCounting g_RoundCounting = RoundCounting_Standard;
@ -460,6 +461,11 @@ public void OnMapStart()
return;
}
g_Config.Rewind();
if(InternalAreRestrictionsActive())
g_SaveCDOnMapEnd = true;
else
g_SaveCDOnMapEnd = false;
}
public void OnConfigsExecuted()
@ -523,7 +529,7 @@ public void OnMapEnd()
static char map[PLATFORM_MAX_PATH];
int Cooldown;
if(InternalAreRestrictionsActive())
if(g_SaveCDOnMapEnd)
{
GetCurrentMap(map, PLATFORM_MAX_PATH);
Cooldown = InternalGetMapCooldown(map);