From f48882213e31c47660cf0c87df1e04e51db9b50a Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 4 Jun 2012 22:34:22 +0300 Subject: Add ignore_world_load_errors configuration option and provide better error messages --- src/mapblock.cpp | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'src/mapblock.cpp') diff --git a/src/mapblock.cpp b/src/mapblock.cpp index ed49f7b82..907be05eb 100644 --- a/src/mapblock.cpp +++ b/src/mapblock.cpp @@ -35,6 +35,8 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "mapblock_mesh.h" #endif +#define PP(x) "("<<(x).X<<","<<(x).Y<<","<<(x).Z<<")" + /* MapBlock */ @@ -634,6 +636,8 @@ void MapBlock::deSerialize(std::istream &is, u8 version, bool disk) { if(!ser_ver_supported(version)) throw VersionMismatchException("ERROR: MapBlock format not supported"); + + TRACESTREAM(<<"MapBlock::deSerialize "<= 23) + if(version >= 23){ + TRACESTREAM(<<"MapBlock::deSerialize "<