Remove Map::FindClosestLoS()

Map::LineIntersectsZone() already accomplished this use case
This commit is contained in:
Michael Cook (mackal) committed 2018-03-08 18:03:15 -05:00
1 parent ef487112df
commit 5c87b8152d
3 files changed
+1 -10

No files matched your search

+1 -1
View File
@@ -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;
}