ship_cmd.c
changeset 578 1e66514eb621
parent 555 02df8a1b7f33
child 588 03521b270f62
--- a/ship_cmd.c	Thu Dec 09 18:18:21 2004 +0000
+++ b/ship_cmd.c	Thu Dec 09 21:46:56 2004 +0000
@@ -352,6 +352,7 @@
 	RecalcShipStuff(v);
 
 	PlayShipSound(v);
+	VehicleServiceInDepot(v);
 }
 
 static bool ShipAccelerate(Vehicle *v)
@@ -394,9 +395,8 @@
 	v->cur_speed = 0;
 	RecalcShipStuff(v);
 
-	v->date_of_last_service = _date;
-	v->breakdowns_since_last_service = 0;
-	v->reliability = _engines[v->engine_type].reliability;
+	VehicleServiceInDepot(v);
+
 	InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
 
 	MaybeRenewVehicle(v, EstimateShipCost(v->engine_type));