mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Load terrain when entering world in online mode
Add world entry callback that triggers terrain loading when receiving SMSG_LOGIN_VERIFY_WORLD. Fix coordinate conversion by applying serverToCanonical() to properly swap X/Y axes from server format.
This commit is contained in:
parent
9c8b202595
commit
a4fcc38c12
5 changed files with 72 additions and 1 deletions
|
|
@ -800,7 +800,6 @@ void TerrainManager::getTileBounds(const TileCoord& coord, float& minX, float& m
|
|||
|
||||
std::string TerrainManager::getADTPath(const TileCoord& coord) const {
|
||||
// Format: World\Maps\{MapName}\{MapName}_{X}_{Y}.adt
|
||||
// Example: Azeroth_32_49.adt for tile at coord.x=32, coord.y=49
|
||||
return "World\\Maps\\" + mapName + "\\" + mapName + "_" +
|
||||
std::to_string(coord.x) + "_" + std::to_string(coord.y) + ".adt";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue