Commit 1277997
authored
[Core] Open mmtiles with the axes the baker named them by (#311)
Recast X is world Y, so the navmesh baker writes a tile at grid (gx, gy)
as navTileX = gy, navTileY = gx. NavMeshBuilder.hpp states the contract
outright: "the runtime opens mmaps/%04u%02i%02i.mmtile with (mapId, y,
x); see MMapManager::loadMap". loadMap passes (x, y) straight through,
so every off-diagonal tile is looked up transposed and fails to open --
only the gx == gy diagonal loads.
Stormwind is ADT Azeroth_30_48: the baker emits 00003048.mmtile and
loadMap asks for 00004830.mmtile.
mangoszero, mangosone and mangostwo all carry this swap in loadMap;
mangosthree and mangosfour are the two that do not. This adds it here,
matching mangostwo's naming and its convention of using the swapped
pair only for messages that name the file -- the already-loaded warning
keeps the grid position, which is what it is reporting.
Also of note: the .mmap GM command in this tree already prints the
swapped order, so the loader was the only place still disagreeing.1 parent 6ef0236 commit 1277997
1 file changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
326 | 331 | | |
327 | | - | |
| 332 | + | |
328 | 333 | | |
329 | 334 | | |
330 | 335 | | |
| |||
339 | 344 | | |
340 | 345 | | |
341 | 346 | | |
342 | | - | |
| 347 | + | |
343 | 348 | | |
344 | 349 | | |
345 | 350 | | |
346 | 351 | | |
347 | 352 | | |
348 | 353 | | |
349 | 354 | | |
350 | | - | |
| 355 | + | |
351 | 356 | | |
352 | 357 | | |
353 | 358 | | |
| |||
358 | 363 | | |
359 | 364 | | |
360 | 365 | | |
361 | | - | |
| 366 | + | |
362 | 367 | | |
363 | 368 | | |
364 | 369 | | |
| |||
371 | 376 | | |
372 | 377 | | |
373 | 378 | | |
374 | | - | |
| 379 | + | |
375 | 380 | | |
376 | 381 | | |
377 | 382 | | |
| |||
0 commit comments