From 4302ed9247c4f341f0c15d7daefd3a9e26f26dcd Mon Sep 17 00:00:00 2001 From: jenz Date: Fri, 20 Sep 2024 11:04:56 +0200 Subject: [PATCH] fixed that on terminate round would constantly trigger new votes again --- .../scripting/mapchooser_extended_avg_mapend.sp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mapchooser_extended/scripting/mapchooser_extended_avg_mapend.sp b/mapchooser_extended/scripting/mapchooser_extended_avg_mapend.sp index c2d17368..c376a1a4 100755 --- a/mapchooser_extended/scripting/mapchooser_extended_avg_mapend.sp +++ b/mapchooser_extended/scripting/mapchooser_extended_avg_mapend.sp @@ -941,6 +941,10 @@ public Action CS_OnTerminateRound(float &delay, CSRoundEndReason &reason) { int timeleft; GetMapTimeLeft(timeleft); + if (g_WaitingForVote) + { + return Plugin_Handled; //it keeps retriggering this Action. + } if (timeleft <= 0 && !g_ChangeMapAtRoundEnd) { InitiateVote(MapChange_Instant); //feature so mapvote happens at actual mapend