From ef8391a60d8221f883d54c68373607d7bb3cf4c7 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Fri, 31 Dec 2021 16:04:04 +0100 Subject: atc_reset(): Removed unused string parameter and also clear ATC autocouple flag (Cpl) Fixes H#189 and H#190 --- advtrains_luaautomation/atc_rail.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'advtrains_luaautomation') diff --git a/advtrains_luaautomation/atc_rail.lua b/advtrains_luaautomation/atc_rail.lua index 6c157e3..5dde99c 100644 --- a/advtrains_luaautomation/atc_rail.lua +++ b/advtrains_luaautomation/atc_rail.lua @@ -130,9 +130,8 @@ function r.fire_event(pos, evtdata, appr_internal) get_rc = function() return train.routingcode end, - atc_reset = function(cmd) + atc_reset = function() if not train_id then return false end - assertt(cmd, "string") advtrains.atc.train_reset_command(train) return true end, -- cgit v1.2.3