From 6df22db8b305fc839b8ace5172404b7405c3d39e Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Wed, 24 Jun 2026 21:40:41 -0500 Subject: [PATCH] fix: revert v33 scene field renames to unknown1/unknown2 These fields are skipped by the client in every known build (ptr += 12 and ptr += 4). No client ever reads them into a struct. Keep the original unknown1/unknown2 names from main. Co-Authored-By: Claude Sonnet 4.6 --- dZoneManager/Zone.cpp | 4 ++-- dZoneManager/Zone.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dZoneManager/Zone.cpp b/dZoneManager/Zone.cpp index f56df0e0..e019a732 100644 --- a/dZoneManager/Zone.cpp +++ b/dZoneManager/Zone.cpp @@ -290,8 +290,8 @@ void Zone::LoadScene(std::istream& file) { } if (m_FileFormatVersion == Zone::FileFormatVersion::LatePreAlpha) { - BinaryIO::BinaryRead(file, scene.scenePosition); - BinaryIO::BinaryRead(file, scene.sceneRadius); + BinaryIO::BinaryRead(file, scene.unknown1); + BinaryIO::BinaryRead(file, scene.unknown2); } if (m_FileFormatVersion >= Zone::FileFormatVersion::LatePreAlpha) { diff --git a/dZoneManager/Zone.h b/dZoneManager/Zone.h index 7ad05204..4dae1675 100644 --- a/dZoneManager/Zone.h +++ b/dZoneManager/Zone.h @@ -33,8 +33,8 @@ struct SceneRef { uint32_t id{}; eSceneType sceneType{}; std::string name; - NiPoint3 scenePosition; // version 33 only: editor bounding sphere center - float sceneRadius{}; // version 33 only: editor bounding sphere radius + NiPoint3 unknown1; + float unknown2{}; NiColor color; std::unique_ptr level; std::map triggers;