MCE: small improvement for the NoRestrictionTimeframe
This commit is contained in:
parent
73a77fa919
commit
94d21d45e9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user