From 4a4668b36a6de1905f8833f6752df37075443652 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Mon, 3 Sep 2018 03:54:15 -0500 Subject: [PATCH] Remove an unecessary costly z calc --- zone/mob_ai.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/mob_ai.cpp b/zone/mob_ai.cpp index 854a9a339..ac40d30e4 100644 --- a/zone/mob_ai.cpp +++ b/zone/mob_ai.cpp @@ -1746,7 +1746,7 @@ void NPC::AI_DoMovement() { glm::vec3 Goal = UpdatePath( roambox_destination_x, roambox_destination_y, - GetGroundZ(roambox_destination_x, roambox_destination_y), + m_Position.z, move_speed, waypoint_changed, node_reached