mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-07 04:52:24 +00:00
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:
parent
7230714cbc
commit
d36d11653a
@ -947,10 +947,6 @@ glm::vec4 Mob::TryMoveAlong(const glm::vec4 &start, float distance, float angle)
|
|||||||
new_pos.z += GetZOffset();
|
new_pos.z += GetZOffset();
|
||||||
|
|
||||||
if (zone->HasMap()) {
|
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))
|
if (zone->zonemap->LineIntersectsZone(start, new_pos, 0.0f, &tmp_pos))
|
||||||
new_pos = tmp_pos;
|
new_pos = tmp_pos;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user