--- 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));