[Core] reapply Properly display creatures with waypoint when they enter player range (b95d077a408ca33c7094d304276848f50ffc8e8b)
This commit is contained in:
parent
6b5f0be841
commit
9217fbf53e
@ -261,6 +261,11 @@ void Object::BuildMovementUpdate(ByteBuffer* data, uint8 updateFlags) const
|
|||||||
{
|
{
|
||||||
moveFlags |= MOVEFLAG_ONTRANSPORT;
|
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(moveFlags); // movement flags
|
||||||
*data << uint32(WorldTimer::getMSTime()); // time (in milliseconds)
|
*data << uint32(WorldTimer::getMSTime()); // time (in milliseconds)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user