mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
C_MapExplorationInfo.GetExploredAreaIDsAtPosition(uiMapID, pos) returns the explored areas whose revealed overlay art is under a map point, most visible first, or nil. It tests the art's alpha, decoded through the engine's own BLP reader (driven as GetPortraitAlphaMask drives it), not the overlay hit rects: measured over the 1.12 art, the rects name an area over bare base map at 16.7% of points and give the wrong first area at 11.6% where they overlap. MAP_EXPLORATION_UPDATED co-hooks the engine's explored-bits watcher (0x4A6460), which EnterWorldUI arms and LeaveWorldUI clears, so it fires only on a real change and never stacks across /reload. The overlay exploration filter now calls the engine's IsAreaExplored (0x4A9A40) instead of re-deriving the bit test; the copy treated a negative AreaBit as unexplored where the engine's unsigned compare treats it as explored. Tile geometry is shared between GetMapOverlays and the new hit test, and tile sizes come from the engine BLP reader.