From d4975a7003a1a9065b747133c9d1ba2913b716a9 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Sat, 4 Feb 2017 21:07:18 +0100 Subject: Even more bugfixes - add translations of all index values to invert_train - fix on_leave_node callbacks not being called when train reverses - fix callbacks on train creation and destruction - Fix warning when saving ATC rail info --- advtrains/advtrains_luaautomation/atc_rail.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'advtrains/advtrains_luaautomation') diff --git a/advtrains/advtrains_luaautomation/atc_rail.lua b/advtrains/advtrains_luaautomation/atc_rail.lua index c2c8d6f..09c560f 100644 --- a/advtrains/advtrains_luaautomation/atc_rail.lua +++ b/advtrains/advtrains_luaautomation/atc_rail.lua @@ -42,8 +42,8 @@ function r.fire_event(pos, evtdata) if atc_arrow==nil then atwarn("LuaAutomation ATC rail at", pos, ": Rail not on train's path! Can't determine arrow direction. Assuming +!") atc_arrow=true - tvel=train.velocity end + tvel=train.velocity end local customfct={ atc_send = function(cmd) -- cgit v1.2.3