From 36ee7fc531b74809b04edff0c5e95a5b268a64d8 Mon Sep 17 00:00:00 2001 From: Beu Date: Fri, 8 Sep 2023 17:59:15 +0200 Subject: [PATCH] flush queue before end map --- TM_ClimbTheMap.Script.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/TM_ClimbTheMap.Script.txt b/TM_ClimbTheMap.Script.txt index 4e83f1e..3529a20 100644 --- a/TM_ClimbTheMap.Script.txt +++ b/TM_ClimbTheMap.Script.txt @@ -386,6 +386,12 @@ if (Net_ClimbTheMap_UpdateFrequency != S_AltitudeUpdateFrequency) { // Ensure that we stop the match (after a vote for the next map, ...) MB_StopMatch(); +// Flush queue +if (Map_XmlRpc_AltitudePerLogin_Queue.count > 0) { + XmlRpc::SendCallback(C_Callback_UpdatePBs, [Map_XmlRpc_AltitudePerLogin_Queue.tojson()]); + Map_XmlRpc_AltitudePerLogin_Queue = []; +} + StateMgr::ForcePlayersStates([StateMgr::C_State_Waiting]); Race::EnableIntroDuringMatch(False);