diff --git a/mapchooser_extended/scripting/mapchooser_extended_avg.sp b/mapchooser_extended/scripting/mapchooser_extended_avg.sp index 90564c47..06690bde 100755 --- a/mapchooser_extended/scripting/mapchooser_extended_avg.sp +++ b/mapchooser_extended/scripting/mapchooser_extended_avg.sp @@ -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);