Mercurial > hg > openttd
changeset 4736:aaa1f6e7836a draft
(svn r6648) -Codechange: simplified CmdDepotMassAutoReplace() by changing a switch-case into using a function, that was added in r6647
author | bjarni <bjarni@openttd.org> |
---|---|
date | Thu, 05 Oct 2006 08:39:16 +0000 |
parents | abf1d8226b4e |
children | 6edb2bd98078 |
files | vehicle.c |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/vehicle.c +++ b/vehicle.c @@ -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;