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:
Kelsi 2026-03-10 22:27:00 -07:00
parent 6928b8ddf6
commit 00a939a733
2 changed files with 16 additions and 4 deletions

View file

@ -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