diff --git a/cybersyn/scripts/central-planning.lua b/cybersyn/scripts/central-planning.lua index 6c5e736..0f421ad 100644 --- a/cybersyn/scripts/central-planning.lua +++ b/cybersyn/scripts/central-planning.lua @@ -195,8 +195,6 @@ local function send_train_between(map_data, r_station_id, p_station_id, train_id if depot_id then map_data.depots[depot_id].available_train_id = nil train.depot_id = nil - else - local test end train.status = STATUS_D_TO_P diff --git a/cybersyn/scripts/main.lua b/cybersyn/scripts/main.lua index 3c63ee0..d8be0f7 100644 --- a/cybersyn/scripts/main.lua +++ b/cybersyn/scripts/main.lua @@ -835,7 +835,7 @@ local function on_train_changed(event) if stop and stop.valid and stop.name == "train-stop" then if global.stations[stop.unit_number] then if train then - on_train_arrives_buffer(global, stop, train) + on_train_arrives_buffer(global, stop, train_id, train) end else local depot_id = stop.unit_number--[[@as uint]]