diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map.cpp | 5 | ||||
-rw-r--r-- | src/mapblock.cpp | 4 | ||||
-rw-r--r-- | src/mapblock.h | 4 | ||||
-rw-r--r-- | src/server.cpp | 4 |
4 files changed, 11 insertions, 6 deletions
diff --git a/src/map.cpp b/src/map.cpp index 5cea4ebca..adcdaffee 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -5545,8 +5545,9 @@ void ServerMap::loadBlock(std::string sectordir, std::string blockfile, MapSecto catch(SerializationError &e) { dstream<<"WARNING: Invalid block data on disk " - "(SerializationError). " - "what()="<<e.what() + <<"fullpath="<<fullpath + <<" (SerializationError). " + <<"what()="<<e.what() <<std::endl; //" Ignoring. A new one will be generated. assert(0); diff --git a/src/mapblock.cpp b/src/mapblock.cpp index db7894a7b..2dfb07f90 100644 --- a/src/mapblock.cpp +++ b/src/mapblock.cpp @@ -830,7 +830,9 @@ void MapBlock::serializeDiskExtra(std::ostream &os, u8 version) // Versions up from 9 have block objects. if(version >= 9) { - serializeObjects(os, version); + //serializeObjects(os, version); // DEPRECATED + // count=0 + writeU16(os, 0); } // Versions up from 15 have static objects. diff --git a/src/mapblock.h b/src/mapblock.h index dd1d5e5aa..ca36499ac 100644 --- a/src/mapblock.h +++ b/src/mapblock.h @@ -366,10 +366,10 @@ public: DEPRECATED */ - void serializeObjects(std::ostream &os, u8 version) + /*void serializeObjects(std::ostream &os, u8 version) { m_objects.serialize(os, version); - } + }*/ // If smgr!=NULL, new objects are added to the scene void updateObjects(std::istream &is, u8 version, scene::ISceneManager *smgr, u32 daynight_ratio) diff --git a/src/server.cpp b/src/server.cpp index 9fa957c2a..d3627a93f 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -873,7 +873,9 @@ void RemoteClient::SendObjectData( bos.write((char*)buf, 6); // Write objects - block->serializeObjects(bos, serialization_version); + //block->serializeObjects(bos, serialization_version); // DEPRECATED + // count=0 + writeU16(bos, 0); blockcount++; |