mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-27 00:02:17 +00:00
Remove Map::FindClosestLoS()
Map::LineIntersectsZone() already accomplished this use case
This commit is contained in:
1 parent
ef487112df
commit
5c87b8152d
3 files changed
+1
-10
No files matched your search
+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