diff options
Diffstat (limited to 'advtrains_luaautomation/atc_rail.lua')
-rw-r--r-- | advtrains_luaautomation/atc_rail.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/advtrains_luaautomation/atc_rail.lua b/advtrains_luaautomation/atc_rail.lua index 1d94a2b..feac8d1 100644 --- a/advtrains_luaautomation/atc_rail.lua +++ b/advtrains_luaautomation/atc_rail.lua @@ -71,6 +71,10 @@ function r.fire_event(pos, evtdata) if not train_id then return false end train.is_shunt = true end, + unset_shunt = function() + if not train_id then return false end + train.is_shunt = nil + end, set_line = function(line) if type(line)~="string" and type(line)~="number" then return false |