aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation/atc_rail.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-02-05 11:23:17 +0100
committerorwell96 <orwell@bleipb.de>2019-02-05 11:23:17 +0100
commite7dcee11276477294fbc9d995c4db479e7e3cfd9 (patch)
tree7c25b14fcd5645706a3809ed00f6f5edcd1ad305 /advtrains_luaautomation/atc_rail.lua
parent8b8c5a2c1f196e72795d3bdb6ea717cb29b485c2 (diff)
downloadadvtrains-e7dcee11276477294fbc9d995c4db479e7e3cfd9.tar.gz
advtrains-e7dcee11276477294fbc9d995c4db479e7e3cfd9.tar.bz2
advtrains-e7dcee11276477294fbc9d995c4db479e7e3cfd9.zip
Force LZB Halt setting
Diffstat (limited to 'advtrains_luaautomation/atc_rail.lua')
-rw-r--r--advtrains_luaautomation/atc_rail.lua6
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()