From d23bacb01625de154caf809b272d4889872e1fb1 Mon Sep 17 00:00:00 2001 From: bjarni Date: Mon, 14 Aug 2006 16:18:41 +0000 Subject: (svn r5891) -Code cleanup: cleaned up the code added in revision 5888 --- vehicle.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vehicle.c b/vehicle.c index b61805dc9..611ae95ca 100644 --- a/vehicle.c +++ b/vehicle.c @@ -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 ? -- cgit v1.2.3-70-g09d2