From af14d57557094525be85dea1ad3102a1b41408c7 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Sun, 5 Feb 2017 12:42:39 +0100 Subject: Fix LuaAtc Interrupt saving The timer was loaded, but not saved, leading to it being counted from 0 upwards every restart, which of course broke interrupts. --- advtrains/advtrains_luaautomation/interrupt.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advtrains/advtrains_luaautomation/interrupt.lua b/advtrains/advtrains_luaautomation/interrupt.lua index e9ad443..4d59db5 100644 --- a/advtrains/advtrains_luaautomation/interrupt.lua +++ b/advtrains/advtrains_luaautomation/interrupt.lua @@ -13,7 +13,7 @@ function iq.load(data) timer = d.timer or 0 end function iq.save() - return {queue = queue} + return {queue = queue, timer=timer} end function iq.add(t, pos, evtdata) -- cgit v1.2.3