From 65c265067df4cf9dbc769cba88bf6b50bfcf9681 Mon Sep 17 00:00:00 2001 From: SuntrustDev <19979417+SunTrustDev@users.noreply.github.com> Date: Tue, 17 Feb 2026 20:26:19 +0100 Subject: [PATCH] Restore original clear behavior (Clear both guild marks and NPC/Warps) --- src/UserInterface/PythonMiniMap.cpp | 8 +++++++- src/UserInterface/PythonMiniMap.h | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/UserInterface/PythonMiniMap.cpp b/src/UserInterface/PythonMiniMap.cpp index 7219b2e..da6105a 100644 --- a/src/UserInterface/PythonMiniMap.cpp +++ b/src/UserInterface/PythonMiniMap.cpp @@ -818,6 +818,12 @@ void CPythonMiniMap::SetAtlasScale(float fx, float fy) ComputeAtlasCenteringOffsets(); } +void CPythonMiniMap::ClearAtlasMarks() +{ + ClearAtlasMarkInfo(); + ClearGuildArea(); +} + bool CPythonMiniMap::LoadAtlas() { CPythonBackground& rkBG=CPythonBackground::Instance(); @@ -863,7 +869,7 @@ bool CPythonMiniMap::LoadAtlas() ComputeAtlasCenteringOffsets(); - ClearGuildArea(); + ClearAtlasMarks(); if (m_bShowAtlas) OpenAtlasWindow(); diff --git a/src/UserInterface/PythonMiniMap.h b/src/UserInterface/PythonMiniMap.h index f3702d3..1eb6a70 100644 --- a/src/UserInterface/PythonMiniMap.h +++ b/src/UserInterface/PythonMiniMap.h @@ -83,6 +83,9 @@ class CPythonMiniMap : public CScreen, public CSingleton void SetAtlasCenterPosition(int x, int y); void SetAtlasScale(float fx, float fy); + // Atlas Marks + void ClearAtlasMarks(); + // NPC List void ClearAtlasMarkInfo(); void RegisterAtlasMark(BYTE byType, const char * c_szName, long lx, long ly);