[Pathing] Improve roambox logic (#2983)

* [Pathing] Improve roambox logic

* Cleanup roambox logic
This commit is contained in:
Chris Miles
2023-02-24 14:07:34 -06:00
committed by GitHub
parent 5cfdeb928e
commit 889e57a5af
5 changed files with 216 additions and 174 deletions
+8 -8
View File
@@ -66,14 +66,14 @@ void NPC::AI_SetRoambox(
uint32 min_delay
)
{
roambox_distance = distance;
roambox_max_x = max_x;
roambox_min_x = min_x;
roambox_max_y = max_y;
roambox_min_y = min_y;
roambox_destination_x = roambox_max_x + 1; // this will trigger a recalc
roambox_delay = delay;
roambox_min_delay = min_delay;
m_roambox.distance = distance;
m_roambox.max_x = max_x;
m_roambox.min_x = min_x;
m_roambox.max_y = max_y;
m_roambox.min_y = min_y;
m_roambox.dest_x = max_x + 1; // this will trigger a recalc
m_roambox.delay = delay;
m_roambox.min_delay = min_delay;
}
void NPC::DisplayWaypointInfo(Client *client) {