[Revert] reapply Properly display creatures with waypoint when they enter player range
This commit is contained in:
parent
7550dfca0e
commit
e4e4f60fff
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user