From 5903639f362b46736860060fb8828dbd497a7c0d Mon Sep 17 00:00:00 2001 From: BoyC Date: Sat, 9 Apr 2022 19:01:39 +0200 Subject: [PATCH] clear undo buffer on map change --- BuildCount.h | 2 +- GW2TacO.cpp | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/BuildCount.h b/BuildCount.h index 225dd26..76a693d 100644 --- a/BuildCount.h +++ b/BuildCount.h @@ -2,7 +2,7 @@ //Automatically generated build count file. DO NOT EDIT MANUALLY! #define BUILD_COUNT_ANUBIS 91 -#define BUILD_COUNT_DESKTOP_EDTCHAL 3595 +#define BUILD_COUNT_DESKTOP_EDTCHAL 3596 #define RELEASE_COUNT_ANUBIS 0 #define RELEASE_COUNT_DESKTOP_EDTCHAL 62 diff --git a/GW2TacO.cpp b/GW2TacO.cpp index 84c158a..7f9bef5 100644 --- a/GW2TacO.cpp +++ b/GW2TacO.cpp @@ -29,6 +29,7 @@ #include #include "ThirdParty/BugSplat/inc/BugSplat.h" #include "MarkerPack.h" +#include "MarkerEditor.h" #define MINIZ_HEADER_FILE_ONLY #include "Bedrock/UtilLib/miniz.c" @@ -763,8 +764,14 @@ INT WINAPI WinMain( _In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, #endif LoadQueuedMarkerPacks(); + + int lastMumbleMap = mumbleLink.mapID; + WaitForMumble( frameThrottling ); + if ( lastMumbleMap != mumbleLink.mapID ) + MarkerDOM::ResetUndoBuffer(); + if ( !App->DeviceOK() ) { LOG_ERR( "[GW2TacO] Device fail" );