1
0
Fork 0

Codechange: Remove redundant checks in FindClosestTrainDepot

pull/13094/head
Koen Bussemaker 2024-11-16 15:07:53 +01:00 committed by Kuhnovic
parent f9b5f78b8a
commit 369ea29e1e
1 changed files with 0 additions and 5 deletions

View File

@ -2167,11 +2167,6 @@ static FindDepotData FindClosestTrainDepot(Train *v, int max_distance)
{
assert(!(v->vehstatus & VS_CRASHED));
if (IsRailDepotTile(v->tile)) return FindDepotData(v->tile, 0);
PBSTileInfo origin = FollowTrainReservation(v);
if (IsRailDepotTile(origin.tile)) return FindDepotData(origin.tile, 0);
return YapfTrainFindNearestDepot(v, max_distance);
}