mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-22 22:12:26 +00:00
Add distance logic to mobs that move
This commit is contained in:
parent
55f1767001
commit
ba1a317119
@ -1480,6 +1480,11 @@ void Mob::SendPositionUpdate(uint8 iSendToSelf) {
|
|||||||
CastToClient()->FastQueuePacket(&app, false);
|
CastToClient()->FastQueuePacket(&app, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (DistanceSquared(last_major_update_position, m_Position) >= (100 * 100)) {
|
||||||
|
entity_list.QueueClients(this, app, true, true);
|
||||||
|
last_major_update_position = m_Position;
|
||||||
|
is_distance_roamer = true;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
entity_list.QueueCloseClients(this, app, (iSendToSelf == 0), RuleI(Range, MobPositionUpdates), nullptr, false);
|
entity_list.QueueCloseClients(this, app, (iSendToSelf == 0), RuleI(Range, MobPositionUpdates), nullptr, false);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user