vehicle.c
changeset 1757 b179d50241dc
parent 1752 cdbfb2f23e72
child 1758 68668114f92e
--- a/vehicle.c	Tue May 03 15:20:08 2005 +0000
+++ b/vehicle.c	Tue May 03 19:31:33 2005 +0000
@@ -55,6 +55,9 @@
 	if (_patches.no_servicing_if_no_breakdowns && _opt.diff.vehicle_breakdowns == 0)
 		return false;
 
+	if (v->vehstatus & VS_CRASHED)
+		return false; /* Crashed vehicles don't need service anymore */
+
 	return _patches.servint_ispercent ?
 		(v->reliability < _engines[v->engine_type].reliability * (100 - v->service_interval) / 100) :
 		(v->date_of_last_service + v->service_interval < _date);