mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
fix: world map exploration fallback when server mask is unavailable
When the server has not sent SMSG_INIT_WORLD_STATES or the mask is empty, fall back to locally-accumulated explored zones tracked by player position. The local set is cleared when a real server mask arrives so it doesn't persist stale data.
This commit is contained in:
parent
6928b8ddf6
commit
00a939a733
2 changed files with 16 additions and 4 deletions
|
|
@ -117,6 +117,8 @@ private:
|
|||
std::vector<uint32_t> serverExplorationMask;
|
||||
bool hasServerExplorationMask = false;
|
||||
std::unordered_set<int> exploredZones;
|
||||
// Locally accumulated exploration (used as fallback when server mask is unavailable)
|
||||
std::unordered_set<int> locallyExploredZones_;
|
||||
};
|
||||
|
||||
} // namespace rendering
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue