diff options
author | orwell96 <orwell@bleipb.de> | 2019-12-11 12:25:08 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2021-02-10 16:35:45 +0100 |
commit | 816245588d62e3364b974be07989298887c45cfe (patch) | |
tree | b4166f07a0396b43d6af7bd41d1295101117d947 /advtrains/atc.lua | |
parent | 74a219937dd031743c880510f10571adec0cf8a8 (diff) | |
download | advtrains-816245588d62e3364b974be07989298887c45cfe.tar.gz advtrains-816245588d62e3364b974be07989298887c45cfe.tar.bz2 advtrains-816245588d62e3364b974be07989298887c45cfe.zip |
Disable ARS train flag and surrounding uses
Diffstat (limited to 'advtrains/atc.lua')
-rw-r--r-- | advtrains/atc.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/advtrains/atc.lua b/advtrains/atc.lua index 2fa3929..1c6df36 100644 --- a/advtrains/atc.lua +++ b/advtrains/atc.lua @@ -256,6 +256,11 @@ local matchptn={ end return 1 end, + ["A([01])"]=function(id, train, match) + if not advtrains.interlocking then return 2 end + advtrains.interlocking.ars_set_disable(train, match=="0") + return 2 + end, } eval_conditional = function(command, arrow, speed) |