diff options
author | orwell96 <mono96.mml@gmail.com> | 2017-02-05 12:42:39 +0100 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2017-02-05 12:42:39 +0100 |
commit | af14d57557094525be85dea1ad3102a1b41408c7 (patch) | |
tree | 6bc3743d21fb8a75ad46b1a03c2541947ed71cca /advtrains | |
parent | d4975a7003a1a9065b747133c9d1ba2913b716a9 (diff) | |
download | advtrains-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.
Diffstat (limited to 'advtrains')
-rw-r--r-- | advtrains/advtrains_luaautomation/interrupt.lua | 2 |
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) |