Skip to content
Snippets Groups Projects
Commit 50a80876 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

support for format 0 and 1 maps

parent f5f15e38
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment