From 79de91adaf213b38de8c1658827de949110b04ab Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Sat, 23 Nov 2024 12:19:57 -0800 Subject: [PATCH] fix parsing live data --- dZoneManager/Level.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dZoneManager/Level.cpp b/dZoneManager/Level.cpp index 354f9623..d2b67b29 100644 --- a/dZoneManager/Level.cpp +++ b/dZoneManager/Level.cpp @@ -138,7 +138,6 @@ void Level::ReadChunks(std::istream& file) { BinaryIO::BinaryRead(file, important); // file.ignore(1); //probably used if (header.chunkVersion > 36) { - LOG("DOING THINGS"); BinaryIO::BinaryRead(file, header.fileInfo.revision); } // HARDCODED 3 @@ -198,6 +197,7 @@ void Level::ReadChunks(std::istream& file) { } header.id = ChunkTypeID::SceneObjectData; + header.fileInfo.version = header.chunkVersion; ReadSceneObjectDataChunk(file, header); m_ChunkHeaders.insert(std::make_pair(header.id, header)); } break; @@ -234,13 +234,13 @@ void Level::ReadSceneObjectDataChunk(std::istream& file, Header& header) { SceneObject obj; BinaryIO::BinaryRead(file, obj.id); BinaryIO::BinaryRead(file, obj.lot); - LOG("HEADER VERSION: %i", header.chunkVersion ); - if (header.chunkVersion >= 38) { + + if (header.fileInfo.version >= 38) { uint32_t tmp = 1; BinaryIO::BinaryRead(file, tmp); if (tmp > -1 && tmp < 11) obj.nodeType = tmp; } - if (header.chunkVersion >= 32) { + if (header.fileInfo.version >= 32) { BinaryIO::BinaryRead(file, obj.glomId); }