(svn r5891) -Code cleanup: cleaned up the code added in revision 5888

This commit is contained in:
bjarni 2006-08-14 16:18:41 +00:00
parent 37f94c7557
commit 4b82897e25
1 changed files with 1 additions and 4 deletions

View File

@ -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 ?