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 :)
This commit is contained in:
Michael Cook (mackal) 2021-10-27 23:42:31 -04:00 committed by GitHub
parent 7230714cbc
commit d36d11653a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}