From 09aa1218ac451d6a69b6a2c73b0c77596b2c471b Mon Sep 17 00:00:00 2001 From: jenz Date: Thu, 8 May 2025 14:18:16 +0200 Subject: [PATCH] added extra check to stop the warning timer in case of a map having mce_extend 0 from the get go --- .../scripting/mapchooser_extended_avg_mapend.sp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mapchooser_extended/scripting/mapchooser_extended_avg_mapend.sp b/mapchooser_extended/scripting/mapchooser_extended_avg_mapend.sp index d9bd97b..779d12b 100755 --- a/mapchooser_extended/scripting/mapchooser_extended_avg_mapend.sp +++ b/mapchooser_extended/scripting/mapchooser_extended_avg_mapend.sp @@ -772,6 +772,13 @@ public void OnMapTimeLeftChanged() void SetupTimeleftTimer() { + if (g_iNextmapState == 0 && GetConVarInt(g_Cvar_Extend) - g_Extends < 1) + { + g_iNextmapState = 3; + //map simply had no extend to begin with. mce_extend 0. + //encap made me notice that maps without extends would still incorrectly do the setup Timeleft Timer() call. + } + if (g_iNextmapState != 0) { if (g_VoteTimer != INVALID_HANDLE)