Skip to content

Commit a0f0211

Browse files
committed
Small refactor
1 parent 416f3a0 commit a0f0211

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/rails_lib/backend/backend_low.ml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ module Train_update = struct
5757
let _train_station_handle_consist_and_maintenance (v:t) idx loc (station:Station.t) (train:rw Train.t) =
5858
(* returns train, income, ui_msgs *)
5959
let handle_stop station_info =
60-
let had_maintenance =
61-
if Station.can_maintain station then true
62-
else train.had_maintenance
63-
in
60+
let had_maintenance = Station.can_maintain station || train.had_maintenance in
6461
(* TODO: deal with priority shipment *)
6562
(* TODO: deal with dist_shipped_cargo *)
6663
let _dist_shipped_cargo =

0 commit comments

Comments
 (0)