[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
+10 -10
View File
@@ -2241,16 +2241,16 @@ void Bot::AI_Bot_Init()
AIautocastspell_timer.reset(nullptr);
casting_spell_AIindex = static_cast<uint8>(AIBot_spells.size());
roambox_max_x = 0;
roambox_max_y = 0;
roambox_min_x = 0;
roambox_min_y = 0;
roambox_distance = 0;
roambox_destination_x = 0;
roambox_destination_y = 0;
roambox_destination_z = 0;
roambox_min_delay = 2500;
roambox_delay = 2500;
m_roambox.max_x = 0;
m_roambox.max_y = 0;
m_roambox.min_x = 0;
m_roambox.min_y = 0;
m_roambox.distance = 0;
m_roambox.dest_x = 0;
m_roambox.dest_y = 0;
m_roambox.dest_z = 0;
m_roambox.delay = 2500;
m_roambox.min_delay = 2500;
}
void Bot::SpellProcess() {