Skip to content

Commit

Permalink
clear undo buffer on map change
Browse files Browse the repository at this point in the history
  • Loading branch information
BoyC committed Apr 9, 2022
1 parent 28a0eb5 commit 5903639
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion BuildCount.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions GW2TacO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <imm.h>
#include "ThirdParty/BugSplat/inc/BugSplat.h"
#include "MarkerPack.h"
#include "MarkerEditor.h"

#define MINIZ_HEADER_FILE_ONLY
#include "Bedrock/UtilLib/miniz.c"
Expand Down Expand Up @@ -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" );
Expand Down

0 comments on commit 5903639

Please sign in to comment.