equal
deleted
inserted
replaced
650 } |
650 } |
651 |
651 |
652 SetAircraftPosition(v, v->x_pos, v->y_pos, v->z_pos); |
652 SetAircraftPosition(v, v->x_pos, v->y_pos, v->z_pos); |
653 InvalidateWindow(WC_VEHICLE_DEPOT, v->tile); |
653 InvalidateWindow(WC_VEHICLE_DEPOT, v->tile); |
654 |
654 |
655 v->date_of_last_service = _date; |
655 VehicleServiceInDepot(v); |
656 v->breakdowns_since_last_service = 0; |
|
657 v->reliability = _engines[v->engine_type].reliability; |
|
658 InvalidateWindow(WC_VEHICLE_DETAILS, v->index); |
656 InvalidateWindow(WC_VEHICLE_DETAILS, v->index); |
659 } |
657 } |
660 |
658 |
661 static void PlayAircraftSound(Vehicle *v) |
659 static void PlayAircraftSound(Vehicle *v) |
662 { |
660 { |
1232 u->vehstatus &= ~VS_HIDDEN; |
1230 u->vehstatus &= ~VS_HIDDEN; |
1233 u->cur_speed = 80; |
1231 u->cur_speed = 80; |
1234 } |
1232 } |
1235 } |
1233 } |
1236 |
1234 |
|
1235 VehicleServiceInDepot(v); |
1237 SetAircraftPosition(v, v->x_pos, v->y_pos, v->z_pos); |
1236 SetAircraftPosition(v, v->x_pos, v->y_pos, v->z_pos); |
1238 InvalidateWindow(WC_VEHICLE_DEPOT, v->tile); |
1237 InvalidateWindow(WC_VEHICLE_DEPOT, v->tile); |
1239 } |
1238 } |
1240 |
1239 |
1241 |
1240 |