*Fix the infamous "walk" bug. By thenecromancer.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-05 18:43:57 -06:00
parent 3a1293ef18
commit 63bbecb8a2

View File

@@ -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