From 94d21d45e93fafb3d648d1735f0d20eb3f113013 Mon Sep 17 00:00:00 2001 From: neon <> Date: Sun, 18 Aug 2019 23:08:23 +0200 Subject: [PATCH] MCE: small improvement for the NoRestrictionTimeframe --- mapchooser_extended/scripting/mapchooser_extended.sp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mapchooser_extended/scripting/mapchooser_extended.sp b/mapchooser_extended/scripting/mapchooser_extended.sp index 655d37da..08bdf995 100644 --- a/mapchooser_extended/scripting/mapchooser_extended.sp +++ b/mapchooser_extended/scripting/mapchooser_extended.sp @@ -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);