aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-11-10 22:29:01 +0100
committerorwell96 <orwell@bleipb.de>2018-11-10 22:53:12 +0100
commit07fa21f9929d0d36c13aefe83a91b5d250e7fea9 (patch)
tree18a2f2b3d35d8347dca3c8bb3ff17fe16847e735
parentb872bdae82b41398d2322ee848ade2c1cc652ce0 (diff)
downloadadvtrains-07fa21f9929d0d36c13aefe83a91b5d250e7fea9.tar.gz
advtrains-07fa21f9929d0d36c13aefe83a91b5d250e7fea9.tar.bz2
advtrains-07fa21f9929d0d36c13aefe83a91b5d250e7fea9.zip
Increase savefile version to 2
(Master downgrade protection)
-rw-r--r--advtrains/init.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/advtrains/init.lua b/advtrains/init.lua
index 3af679a..c7cbf9d 100644
--- a/advtrains/init.lua
+++ b/advtrains/init.lua
@@ -11,7 +11,7 @@ end
--advtrains
-DUMP_DEBUG_SAVE = false
+DUMP_DEBUG_SAVE = true
--Constant for maximum connection value/division of the circle
AT_CMAX = 16
@@ -314,6 +314,7 @@ advtrains.avt_save = function(remove_players_from_wagons)
--versions:
-- 1 - Initial new save format.
+ -- 2 - version as of tss branch 11-2018+
local il_save
if advtrains.interlocking then
il_save = advtrains.interlocking.db.save()
@@ -325,7 +326,7 @@ advtrains.avt_save = function(remove_players_from_wagons)
atc = advtrains.atc.save_data(),
ndb = advtrains.ndb.save_data(),
interlocking = il_save,
- version = 1,
+ version = 2,
}
local datastr = minetest.serialize(save_tbl)
if not datastr then