diff options
author | orwell96 <orwell@bleipb.de> | 2019-02-05 11:23:17 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2019-02-05 11:23:17 +0100 |
commit | e7dcee11276477294fbc9d995c4db479e7e3cfd9 (patch) | |
tree | 7c25b14fcd5645706a3809ed00f6f5edcd1ad305 /advtrains_luaautomation | |
parent | 8b8c5a2c1f196e72795d3bdb6ea717cb29b485c2 (diff) | |
download | advtrains-e7dcee11276477294fbc9d995c4db479e7e3cfd9.tar.gz advtrains-e7dcee11276477294fbc9d995c4db479e7e3cfd9.tar.bz2 advtrains-e7dcee11276477294fbc9d995c4db479e7e3cfd9.zip |
Force LZB Halt setting
Diffstat (limited to 'advtrains_luaautomation')
-rw-r--r-- | advtrains_luaautomation/atc_rail.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/advtrains_luaautomation/atc_rail.lua b/advtrains_luaautomation/atc_rail.lua index 04228ac..f4b3337 100644 --- a/advtrains_luaautomation/atc_rail.lua +++ b/advtrains_luaautomation/atc_rail.lua @@ -58,6 +58,9 @@ function r.fire_event(pos, evtdata) return false end train.line = line .. "" + if advtrains.interlocking then + advtrains.interlocking.lzb_invalidate(train) + end return true end, get_line = function() @@ -68,6 +71,9 @@ function r.fire_event(pos, evtdata) return false end train.routingcode = rc + if advtrains.interlocking then + advtrains.interlocking.lzb_invalidate(train) + end return true end, get_rc = function() |