just betting on it working on mapend, ofc nobody is on a team at mapstart, me dumb
This commit is contained in:
parent
dbcc12fb03
commit
af83da6f34
@ -195,7 +195,6 @@ int g_mapOfficialFileSerial = -1;
|
|||||||
char g_GameModName[64];
|
char g_GameModName[64];
|
||||||
bool g_WarningInProgress = false;
|
bool g_WarningInProgress = false;
|
||||||
bool g_AddNoVote = false;
|
bool g_AddNoVote = false;
|
||||||
bool g_SaveCDOnMapEnd = true;
|
|
||||||
|
|
||||||
RoundCounting g_RoundCounting = RoundCounting_Standard;
|
RoundCounting g_RoundCounting = RoundCounting_Standard;
|
||||||
|
|
||||||
@ -525,11 +524,6 @@ public void OnMapStart()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
g_Config.Rewind();
|
g_Config.Rewind();
|
||||||
|
|
||||||
if(InternalAreRestrictionsActive(false))
|
|
||||||
g_SaveCDOnMapEnd = true;
|
|
||||||
else
|
|
||||||
g_SaveCDOnMapEnd = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnConfigsExecuted()
|
public void OnConfigsExecuted()
|
||||||
@ -598,7 +592,7 @@ public void OnMapEnd()
|
|||||||
static char map[PLATFORM_MAX_PATH];
|
static char map[PLATFORM_MAX_PATH];
|
||||||
int Cooldown;
|
int Cooldown;
|
||||||
|
|
||||||
if(g_SaveCDOnMapEnd)
|
if(InternalAreRestrictionsActive(false))
|
||||||
{
|
{
|
||||||
GetCurrentMap(map, PLATFORM_MAX_PATH);
|
GetCurrentMap(map, PLATFORM_MAX_PATH);
|
||||||
Cooldown = InternalGetMapCooldown(map);
|
Cooldown = InternalGetMapCooldown(map);
|
||||||
|
Loading…
Reference in New Issue
Block a user