summaryrefslogtreecommitdiff
path: root/src/serialization.h
diff options
context:
space:
mode:
authorproller <proller@github.com>2013-08-02 00:51:36 +0400
committerproller <proller@github.com>2013-08-02 00:51:36 +0400
commit06cdce1e1231fb5946ac9750f9b53b53c6f7e5f8 (patch)
tree09af2d05170bf088f4560778517b72fad0983914 /src/serialization.h
parent0e89bca173fb000368786e5c9f5614e506737b92 (diff)
downloadminetest-06cdce1e1231fb5946ac9750f9b53b53c6f7e5f8.tar.gz
minetest-06cdce1e1231fb5946ac9750f9b53b53c6f7e5f8.tar.bz2
minetest-06cdce1e1231fb5946ac9750f9b53b53c6f7e5f8.zip
Weather backward compatibility
Diffstat (limited to 'src/serialization.h')
-rw-r--r--src/serialization.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/serialization.h b/src/serialization.h
index 807b68e9d..86da31486 100644
--- a/src/serialization.h
+++ b/src/serialization.h
@@ -61,16 +61,18 @@ with this program; if not, write to the Free Software Foundation, Inc.,
23: new node metadata format
24: 16-bit node ids and node timers (never released as stable)
25: Improved node timer format
- 26: MapBlocks contain heat and humidity
+ 26: Never written; read the same as 25
*/
// This represents an uninitialized or invalid format
#define SER_FMT_VER_INVALID 255
// Highest supported serialization version
-#define SER_FMT_VER_HIGHEST 26
+#define SER_FMT_VER_HIGHEST_READ 26
+// Saved on disk version
+#define SER_FMT_VER_HIGHEST_WRITE 25
// Lowest supported serialization version
#define SER_FMT_VER_LOWEST 0
-#define ser_ver_supported(v) (v >= SER_FMT_VER_LOWEST && v <= SER_FMT_VER_HIGHEST)
+#define ser_ver_supported(v) (v >= SER_FMT_VER_LOWEST && v <= SER_FMT_VER_HIGHEST_READ)
/*
Misc. serialization functions