mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 12:18:27 +00:00
Remove Map::FindClosestLoS()
Map::LineIntersectsZone() already accomplished this use case
This commit is contained in:
+1
-1
@@ -1012,7 +1012,7 @@ void Mob::TryMoveAlong(float distance, float angle, bool send)
|
||||
if (new_z != BEST_Z_INVALID)
|
||||
new_pos.z = new_z;
|
||||
|
||||
if (zone->zonemap->FindClosestLoS(GetPosition(), new_pos, tmp_pos))
|
||||
if (zone->zonemap->LineIntersectsZone(GetPosition(), new_pos, 0.0f, &tmp_pos))
|
||||
new_pos = tmp_pos;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user