Remove Map::FindClosestLoS()

Map::LineIntersectsZone() already accomplished this use case
This commit is contained in:
Michael Cook (mackal)
2018-03-08 18:03:15 -05:00
parent ef487112df
commit 5c87b8152d
3 changed files with 1 additions and 10 deletions
+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;
}