diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-04-11 16:58:49 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-04-11 16:58:49 +0300 |
commit | 50a8087684cb9cdee033053c01a6e51eb516565b (patch) | |
tree | 2256bfce707cf753ce91869bfa113b074d6e6f06 | |
parent | f5f15e38a592b714e024821096348ad91673762d (diff) | |
download | minetest-50a8087684cb9cdee033053c01a6e51eb516565b.tar.gz minetest-50a8087684cb9cdee033053c01a6e51eb516565b.tar.bz2 minetest-50a8087684cb9cdee033053c01a6e51eb516565b.zip |
support for format 0 and 1 maps
-rw-r--r-- | src/mapblock.cpp | 6 | ||||
-rw-r--r-- | src/serialization.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/mapblock.cpp b/src/mapblock.cpp index 377e28435..38c081eec 100644 --- a/src/mapblock.cpp +++ b/src/mapblock.cpp @@ -1936,6 +1936,12 @@ void MapBlock::deSerialize(std::istream &is, u8 version) if(!ser_ver_supported(version)) throw VersionMismatchException("ERROR: MapBlock format not supported"); + // These have no lighting info + if(version <= 1) + { + setLightingExpired(true); + } + // These have no compression if(version <= 3 || version == 5 || version == 6) { diff --git a/src/serialization.h b/src/serialization.h index 7b5c7d418..26ab90e36 100644 --- a/src/serialization.h +++ b/src/serialization.h @@ -54,7 +54,7 @@ with this program; if not, write to the Free Software Foundation, Inc., // Highest supported serialization version #define SER_FMT_VER_HIGHEST 15 // Lowest supported serialization version -#define SER_FMT_VER_LOWEST 2 +#define SER_FMT_VER_LOWEST 0 #define ser_ver_supported(v) (v >= SER_FMT_VER_LOWEST && v <= SER_FMT_VER_HIGHEST) |