just betting on it working on mapend, ofc nobody is on a team at mapstart, me dumb

This commit is contained in:
jenz 2024-02-13 21:21:57 +01:00
parent dbcc12fb03
commit af83da6f34

View File

@ -195,7 +195,6 @@ 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;
@ -525,11 +524,6 @@ public void OnMapStart()
return;
}
g_Config.Rewind();
if(InternalAreRestrictionsActive(false))
g_SaveCDOnMapEnd = true;
else
g_SaveCDOnMapEnd = false;
}
public void OnConfigsExecuted()
@ -598,7 +592,7 @@ public void OnMapEnd()
static char map[PLATFORM_MAX_PATH];
int Cooldown;
if(g_SaveCDOnMapEnd)
if(InternalAreRestrictionsActive(false))
{
GetCurrentMap(map, PLATFORM_MAX_PATH);
Cooldown = InternalGetMapCooldown(map);