mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
[12211] Fix taxies
Original author: @Shauren Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
This commit is contained in:
parent
9690f8d80d
commit
257afbf540
8 changed files with 37 additions and 37 deletions
|
|
@ -5244,8 +5244,8 @@ uint32 ObjectMgr::GetNearestTaxiNode(float x, float y, float z, uint32 mapid, Te
|
|||
if (!node || node->map_id != mapid || !node->MountCreatureID[team == ALLIANCE ? 1 : 0])
|
||||
continue;
|
||||
|
||||
uint8 field = (uint8)((i - 1) / 32);
|
||||
uint32 submask = 1 << ((i - 1) % 32);
|
||||
uint8 field = (uint8)((i - 1) / 8);
|
||||
uint8 submask = 1 << ((i - 1) % 8);
|
||||
|
||||
// skip not taxi network nodes
|
||||
if ((sTaxiNodesMask[field] & submask) == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue