diff options
author | orwell <orwell@bleipb.de> | 2025-07-05 16:42:54 +0200 |
---|---|---|
committer | orwell <orwell@bleipb.de> | 2025-07-05 16:42:54 +0200 |
commit | 97e5554e34cfaa80716969eebee6577e4c4da000 (patch) | |
tree | e636785786d0aefc2e2a3ed751522cb48b7d85a1 /advtrains_line_automation/line_functions.lua | |
parent | 041847319d4adb868f4329197f541d50aa02f89d (diff) | |
download | advtrains-97e5554e34cfaa80716969eebee6577e4c4da000.tar.gz advtrains-97e5554e34cfaa80716969eebee6577e4c4da000.tar.bz2 advtrains-97e5554e34cfaa80716969eebee6577e4c4da000.zip |
Implement the No Disable ARS flag on the stoprailtimetable
Diffstat (limited to 'advtrains_line_automation/line_functions.lua')
-rw-r--r-- | advtrains_line_automation/line_functions.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/advtrains_line_automation/line_functions.lua b/advtrains_line_automation/line_functions.lua index de5d133..3a369f7 100644 --- a/advtrains_line_automation/line_functions.lua +++ b/advtrains_line_automation/line_functions.lua @@ -623,7 +623,9 @@ function al.on_train_approach(pos, train_id, train, index, has_entered) local stnname = stn and stn.name or S("Unknown Station") train.text_inside = S("Next Stop:") .. "\n"..stnname end - advtrains.interlocking.ars_set_disable(train, true) + if not stdata.arskeepen then + advtrains.interlocking.ars_set_disable(train, true) + end end end |