aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-23 11:11:50 -0600
committermegamage <none@none>2009-02-23 11:11:50 -0600
commite425ba5837427a611f1b5b4856edd35c0e2adef7 (patch)
tree0de43adbf29e35632b24343590da0110fb11b4de /src/game/Unit.cpp
parent6395b4856ff124bffee716252295683976878fe1 (diff)
*Send correct move flag to client.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 21a489f188c..8ba170a84f1 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -394,7 +394,7 @@ void Unit::SendMonsterMove(float NewPosX, float NewPosY, float NewPosZ, uint8 ty
}
//Movement Flags (0x0 = walk, 0x100 = run, 0x200 = fly/swim)
- data << uint32(GetTypeId() == TYPEID_PLAYER ? MOVEMENTFLAG_WALK_MODE : MovementFlags);
+ data << uint32((MovementFlags & MOVEMENTFLAG_LEVITATING) ? MOVEFLAG_FLY : MOVEFLAG_WALK);
data << Time; // Time in between points
data << uint32(1); // 1 single waypoint