From d36d11653a892939554983e0c7266f2d29a92b00 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Wed, 27 Oct 2021 23:42:31 -0400 Subject: [PATCH] Fix issue with new summmon method putting players OOB (#1649) The FindClosestZ was finding the Z above them ... lets try just not doing that for now :) --- zone/waypoints.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/zone/waypoints.cpp b/zone/waypoints.cpp index 72bdf14d5..2c8338e53 100644 --- a/zone/waypoints.cpp +++ b/zone/waypoints.cpp @@ -947,10 +947,6 @@ glm::vec4 Mob::TryMoveAlong(const glm::vec4 &start, float distance, float angle) new_pos.z += GetZOffset(); if (zone->HasMap()) { - auto new_z = zone->zonemap->FindClosestZ(new_pos, nullptr); - if (new_z != BEST_Z_INVALID) - new_pos.z = new_z; - if (zone->zonemap->LineIntersectsZone(start, new_pos, 0.0f, &tmp_pos)) new_pos = tmp_pos; }