aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-05 18:43:57 -0600
committermegamage <none@none>2008-12-05 18:43:57 -0600
commit63bbecb8a27d1af9424baa025a0a97f90469a9bb (patch)
tree17946b2c53c5540b6ed2ecd60ba085e7a859d1aa /src/game/Unit.cpp
parent3a1293ef183425fe555354c5445b43ff246d33fa (diff)
*Fix the infamous "walk" bug. By thenecromancer.
--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 aa1fb0a5a5d..7f0fd9c6df3 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -376,7 +376,7 @@ void Unit::SendMonsterMove(float NewPosX, float NewPosY, float NewPosZ, uint8 ty
}
//Movement Flags (0x0 = walk, 0x100 = run, 0x200 = fly/swim)
- data << uint32(MovementFlags);
+ data << uint32(GetTypeId() == TYPEID_PLAYER ? MOVEMENTFLAG_WALK_MODE : MovementFlags);
data << Time; // Time in between points
data << uint32(1); // 1 single waypoint