aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation/atc_rail.lua
diff options
context:
space:
mode:
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()