[Core] reapply Properly display creatures with waypoint when they enter player range (b95d077a408ca33c7094d304276848f50ffc8e8b)

This commit is contained in:
neo2003 2015-04-03 23:19:23 +01:00 committed by Antz
parent 6b5f0be841
commit 9217fbf53e

View File

@ -261,6 +261,11 @@ void Object::BuildMovementUpdate(ByteBuffer* data, uint8 updateFlags) const
{
moveFlags |= MOVEFLAG_ONTRANSPORT;
}
float x, y, z;
if (m_objectTypeId == TYPEID_UNIT && ((Unit*)this)->GetMotionMaster()->GetDestination(x, y, z))
{
moveFlags |= MOVEFLAG_WALK_MODE | MOVEFLAG_MOVE_FORWARD | MOVEFLAG_SPLINE_ENABLED;
}
*data << uint32(moveFlags); // movement flags
*data << uint32(WorldTimer::getMSTime()); // time (in milliseconds)