From 11d6a12ce7752c7640c3cb85e76814ebeb3f94ef Mon Sep 17 00:00:00 2001 From: Gabriel PĂ©rez-Cerezo Date: Mon, 23 Oct 2017 13:33:27 +0200 Subject: Set wagon line number --- advtrains_luaautomation/atc_rail.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'advtrains_luaautomation') diff --git a/advtrains_luaautomation/atc_rail.lua b/advtrains_luaautomation/atc_rail.lua index 3ec82c8..1fae28d 100644 --- a/advtrains_luaautomation/atc_rail.lua +++ b/advtrains_luaautomation/atc_rail.lua @@ -58,6 +58,10 @@ function r.fire_event(pos, evtdata) train.atc_arrow=atc_arrow return true end, + set_line = function(line) + train.line = line + return true + end, atc_reset = function(cmd) if not train_id then return false end assertt(cmd, "string") -- cgit v1.2.3