Changeset - r4736:f53f31179cbd
[Not reviewed]
master
0 1 0
bjarni - 18 years ago 2006-10-05 08:39:16
bjarni@openttd.org
(svn r6648) -Codechange: simplified CmdDepotMassAutoReplace() by changing a switch-case into using a function, that was added in r6647
1 file changed with 1 insertions and 4 deletions:
0 comments (0 inline, 0 general)
vehicle.c
Show inline comments
 
@@ -1720,10 +1720,7 @@ int32 CmdDepotMassAutoReplace(TileIndex 
 
		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;
0 comments (0 inline, 0 general)