forked from mirror/OpenTTD
(svn r18394) -Fix (r18373): one couldn't manually send a RV to a depot... but why compilers haven't complained about this?
This commit is contained in:
@@ -485,5 +485,5 @@ FindDepotData YapfRoadVehicleFindNearestDepot(const RoadVehicle *v, int max_dist
|
|||||||
FindDepotData fdd;
|
FindDepotData fdd;
|
||||||
bool ret = pfnFindNearestDepot(v, tile, trackdir, max_distance, &fdd.tile);
|
bool ret = pfnFindNearestDepot(v, tile, trackdir, max_distance, &fdd.tile);
|
||||||
fdd.best_length = ret ? max_distance / 2 : UINT_MAX; // some fake distance or NOT_FOUND
|
fdd.best_length = ret ? max_distance / 2 : UINT_MAX; // some fake distance or NOT_FOUND
|
||||||
return ret;
|
return fdd;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user