diff options
author | jackpoz <giacomopoz@gmail.com> | 2014-04-13 13:40:42 +0200 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2014-04-13 13:40:42 +0200 |
commit | a07e82530f7ffaf161ae785e1fe1748cd89cc71d (patch) | |
tree | 66ba399732588d4425140e89289efdda66d4eb2c | |
parent | e51976e17a29bd2a318dc84e42cc24d3e9c877ae (diff) |
Scripts/Commands: Fix .mmap loc wrong coordinates
Fix .mmap loc command printing swapped x and y tile coordinates
-rw-r--r-- | src/server/scripts/Commands/cs_mmaps.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Commands/cs_mmaps.cpp b/src/server/scripts/Commands/cs_mmaps.cpp index 61598bf0945..47cb5636672 100644 --- a/src/server/scripts/Commands/cs_mmaps.cpp +++ b/src/server/scripts/Commands/cs_mmaps.cpp @@ -127,8 +127,8 @@ public: int32 gx = 32 - player->GetPositionX() / SIZE_OF_GRIDS; int32 gy = 32 - player->GetPositionY() / SIZE_OF_GRIDS; - handler->PSendSysMessage("%03u%02i%02i.mmtile", player->GetMapId(), gy, gx); - handler->PSendSysMessage("gridloc [%i, %i]", gx, gy); + handler->PSendSysMessage("%03u%02i%02i.mmtile", player->GetMapId(), gx, gy); + handler->PSendSysMessage("gridloc [%i, %i]", gy, gx); // calculate navmesh tile location dtNavMesh const* navmesh = MMAP::MMapFactory::createOrGetMMapManager()->GetNavMesh(handler->GetSession()->GetPlayer()->GetMapId()); |