aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-02-05 12:42:39 +0100
committerorwell96 <mono96.mml@gmail.com>2017-02-05 12:42:39 +0100
commitaf14d57557094525be85dea1ad3102a1b41408c7 (patch)
tree6bc3743d21fb8a75ad46b1a03c2541947ed71cca
parentd4975a7003a1a9065b747133c9d1ba2913b716a9 (diff)
downloadadvtrains-af14d57557094525be85dea1ad3102a1b41408c7.tar.gz
advtrains-af14d57557094525be85dea1ad3102a1b41408c7.tar.bz2
advtrains-af14d57557094525be85dea1ad3102a1b41408c7.zip
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.
-rw-r--r--advtrains/advtrains_luaautomation/interrupt.lua2
1 files changed, 1 insertions, 1 deletions
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)