From 9fcafbef62396fe2eaa52232850a7cbd5523e0aa Mon Sep 17 00:00:00 2001 From: Akkadius Date: Mon, 1 Oct 2018 21:15:30 -0500 Subject: [PATCH] Remove navmesh from roambox logic until stuck issues are sorted with movement overhaul --- zone/mob_ai.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zone/mob_ai.cpp b/zone/mob_ai.cpp index 766929c97..5dca4e01e 100644 --- a/zone/mob_ai.cpp +++ b/zone/mob_ai.cpp @@ -1783,6 +1783,7 @@ void NPC::AI_DoMovement() { roambox_destination_y); } + /** bool waypoint_changed, node_reached; glm::vec3 Goal = UpdatePath( @@ -1793,8 +1794,9 @@ void NPC::AI_DoMovement() { waypoint_changed, node_reached ); + **/ - CalculateNewPosition(Goal.x, Goal.y, Goal.z, move_speed, true); + CalculateNewPosition(roambox_destination_x, roambox_destination_y, roambox_destination_z, move_speed, true); if (m_Position.x == roambox_destination_x && m_Position.y == roambox_destination_y) { time_until_can_move = Timer::GetCurrentTime() + RandomTimer(roambox_min_delay, roambox_delay);