diff options
author | bjarni <bjarni@openttd.org> | 2006-08-14 16:18:41 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-08-14 16:18:41 +0000 |
commit | d23bacb01625de154caf809b272d4889872e1fb1 (patch) | |
tree | 1d8b07f6efd68509742e03ec813e6b633389aedf | |
parent | 1f2311413d0a7ea271494d8659b6249c58f6d817 (diff) | |
download | openttd-d23bacb01625de154caf809b272d4889872e1fb1.tar.xz |
(svn r5891) -Code cleanup: cleaned up the code added in revision 5888
-rw-r--r-- | vehicle.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -102,10 +102,7 @@ bool VehicleNeedsService(const Vehicle *v) return false; /* Crashed vehicles don't need service anymore */ if (_patches.no_servicing_if_no_breakdowns && _opt.diff.vehicle_breakdowns == 0) { - if (EngineReplacementForPlayer(GetPlayer(v->owner), v->engine_type) != INVALID_ENGINE) - return true; /* Vehicles set for autoreplacing needs to go to a depot even if breakdowns are turned off */ - else - return false; + return EngineHasReplacementForPlayer(GetPlayer(v->owner), v->engine_type); /* Vehicles set for autoreplacing needs to go to a depot even if breakdowns are turned off */ } return _patches.servint_ispercent ? |