summaryrefslogtreecommitdiff
path: root/il_timetable/init_code.lua
diff options
context:
space:
mode:
Diffstat (limited to 'il_timetable/init_code.lua')
-rw-r--r--il_timetable/init_code.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/il_timetable/init_code.lua b/il_timetable/init_code.lua
index 2cda3a3..c9acd9e 100644
--- a/il_timetable/init_code.lua
+++ b/il_timetable/init_code.lua
@@ -435,7 +435,7 @@ local function is_past_station(tstn, stnorder)
end
return true
end
-local function add_train(deptime, line, train)
+local function add_train(deptime, line, train, tid)
local tent = {dep = deptime, text =
rwt.to_string(deptime,true).." "..F.ttp[line].stn_display
.." +"..train.last_delay}
@@ -456,7 +456,7 @@ for _,line in ipairs(p.lines) do
if train.timetable == line then
if train.location == p.station and not train.actual_dep then
-- the train is currently standing at this station
- add_train(train.planned_dep, line, train)
+ add_train(train.planned_dep, line, train, id)
elseif not is_past_station(train.location, sttp.station_order) then
-- train is still approaching, calculate arrival time
local trav_dep = rwt.add(train.initial_dep, (sttp.travel_times[p.station] or 0) + STOP_TIME)
@@ -467,7 +467,7 @@ for _,line in ipairs(p.lines) do
act_dep = plan_dep
end
end
- add_train(act_dep, line, train)
+ add_train(act_dep, line, train, id)
end
end
end