aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2020-12-15 15:38:53 +0100
committerorwell96 <orwell@bleipb.de>2021-01-12 13:27:00 +0100
commitbdc49b919d5480ef3fef1ea415caadd8408cf35d (patch)
tree2270b31f81ea5c556c26dea877c1be77996e3953
parent0df208af5395a20c7b0073b2d1457d007438d2e6 (diff)
downloadadvtrains-bdc49b919d5480ef3fef1ea415caadd8408cf35d.tar.gz
advtrains-bdc49b919d5480ef3fef1ea415caadd8408cf35d.tar.bz2
advtrains-bdc49b919d5480ef3fef1ea415caadd8408cf35d.zip
DUMP_DEBUG_SAVE also dumps interlocking data
-rw-r--r--advtrains/init.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/advtrains/init.lua b/advtrains/init.lua
index d6c3c92..fb17f08 100644
--- a/advtrains/init.lua
+++ b/advtrains/init.lua
@@ -462,6 +462,12 @@ advtrains.avt_save = function(remove_players_from_wagons)
end
file:write(dump(save_tbl))
file:close()
+ local file, err = io.open(advtrains.fpath.."_interlocking_DUMP", "w")
+ if err then
+ return
+ end
+ file:write(dump(il_save))
+ file:close()
end
end