Skip to content
Snippets Groups Projects
Commit 15318265 authored by Peter Nerlich's avatar Peter Nerlich
Browse files

remove trains from platform on approach, minor fixes

parent ec5426c2
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,7 @@ S.lines = {
circle=false,
stations= {
{name="Neuland HBF unten",entry="west", platform="U2", exit='south'},
{name="Auditorium Sued",entry="west", platform="2", exit='east'},
{name="Auditorium",entry="south", platform="1", exit='west'},
{name="Anmeldung",entry="south", platform="2", exit='north'},
{name="Neuland HBF unten",entry="south", platform="U6", exit='west'},
......@@ -347,11 +348,15 @@ F.platform_exit_trigger = function(station, platform, event, atc_arrow, get_line
F.enter_platform(station, platform, line, true)
end
end
elseif event.approach and not atc_arrow then
elseif event.approach then
if not atc_arrow then
local line = get_line()
if line ~= nil then
F.approach_station(station, entry, line, true)
end
else
F.exit_platform(station, platform, line, true)
end
end
end
......@@ -595,6 +600,7 @@ F.typeset_arrivals = function(arrivals, screen_width)
end
end
if #screen_lines < 1 then
table.insert(screen_lines, "")
table.insert(screen_lines, "")
table.insert(screen_lines, "no arrivals")
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment