Restore original clear behavior (Clear both guild marks and NPC/Warps)

This commit is contained in:
SuntrustDev
2026-02-17 20:26:19 +01:00
parent 41aecfbc4d
commit 65c265067d
2 changed files with 10 additions and 1 deletions

View File

@@ -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();

View File

@@ -83,6 +83,9 @@ class CPythonMiniMap : public CScreen, public CSingleton<CPythonMiniMap>
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);