[Revert] reapply Properly display creatures with waypoint when they enter player range

This commit is contained in:
Antz 2015-04-04 02:02:55 +01:00 committed by Antz
parent 7550dfca0e
commit e4e4f60fff

View File

@ -261,11 +261,12 @@ 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_FORWARD | MOVEFLAG_SPLINE_ENABLED;
}
//float x, y, z;
//if (m_objectTypeId == TYPEID_UNIT && ((Unit*)this)->GetMotionMaster()->GetDestination(x, y, z))
//{
// moveFlags |= MOVEFLAG_WALK_MODE | MOVEFLAG_FORWARD | MOVEFLAG_SPLINE_ENABLED;
//}
*data << uint32(moveFlags); // movement flags
*data << uint32(WorldTimer::getMSTime()); // time (in milliseconds)