From af83da6f34eda27cf2f8e5823ca8a253d162e161 Mon Sep 17 00:00:00 2001 From: jenz Date: Tue, 13 Feb 2024 21:21:57 +0100 Subject: [PATCH] just betting on it working on mapend, ofc nobody is on a team at mapstart, me dumb --- mapchooser_extended/scripting/mapchooser_extended_avg.sp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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);