vehicle.c
changeset 4736 b830a9f1703c
parent 4734 20770a208a04
child 4739 bd535b408617
--- a/vehicle.c	Thu Oct 05 08:27:40 2006 +0000
+++ b/vehicle.c	Thu Oct 05 08:39:16 2006 +0000
@@ -1720,10 +1720,7 @@
 		int32 ret;
 
 		/* Ensure that the vehicle completely in the depot */
-		if ((vehicle_type == VEH_Train    && !CheckTrainInDepot(v, false)) ||
-			(vehicle_type == VEH_Road     && !IsRoadVehInDepot(v)        ) ||
-			(vehicle_type == VEH_Ship     && !IsShipInDepot(v)           ) ||
-			(vehicle_type == VEH_Aircraft && !IsAircraftInHangar(v))     ) continue;
+		if (!IsVehicleInDepot(v)) continue;
 
 		x = v->x_pos;
 		y = v->y_pos;