diff options
author | megamage <none@none> | 2009-02-23 16:59:25 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-23 16:59:25 -0600 |
commit | 387b6af430bdf6be2a8a21caddedc43cba59f344 (patch) | |
tree | 2f6ed470c3fab7c1e52fd5edee420fc6db9cbfec /src | |
parent | 34517a860f018ee8bde34556b83b63a6ff2dd9f2 (diff) |
*Fix the bug of taxi movement.
*Correct the size of move stop packet.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index a9b300cd943..3d3c4874b20 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -367,7 +367,7 @@ void Unit::SendMonsterMoveWithSpeed(float x, float y, float z, uint32 MovementFl void Unit::SendMonsterStop() { - WorldPacket data( SMSG_MONSTER_MOVE, (41 + GetPackGUID().size()) ); + WorldPacket data( SMSG_MONSTER_MOVE, (17 + GetPackGUID().size()) ); data.append(GetPackGUID()); data << GetPositionX() << GetPositionY() << GetPositionZ(); data << getMSTime(); @@ -452,7 +452,7 @@ void Unit::SendMonsterMoveByPath(Path const& path, uint32 start, uint32 end) data << getMSTime(); data << uint8( 0 ); - data << uint32((GetUnitMovementFlags() & MOVEMENTFLAG_LEVITATING) ? MOVEFLAG_FLY : MOVEFLAG_WALK); + data << uint32(((GetUnitMovementFlags() & MOVEMENTFLAG_LEVITATING) || isInFlight())? MOVEFLAG_FLY : MOVEFLAG_WALK); data << uint32( traveltime ); data << uint32( pathSize ); data.append( (char*)path.GetNodes(start), pathSize * 4 * 3 ); |