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 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-06-24 21:40:41 -05:00
parent 9c2062231a
commit 6df22db8b3
2 changed files with 4 additions and 4 deletions

View File

@@ -290,8 +290,8 @@ void Zone::LoadScene(std::istream& file) {
} }
if (m_FileFormatVersion == Zone::FileFormatVersion::LatePreAlpha) { if (m_FileFormatVersion == Zone::FileFormatVersion::LatePreAlpha) {
BinaryIO::BinaryRead(file, scene.scenePosition); BinaryIO::BinaryRead(file, scene.unknown1);
BinaryIO::BinaryRead(file, scene.sceneRadius); BinaryIO::BinaryRead(file, scene.unknown2);
} }
if (m_FileFormatVersion >= Zone::FileFormatVersion::LatePreAlpha) { if (m_FileFormatVersion >= Zone::FileFormatVersion::LatePreAlpha) {

View File

@@ -33,8 +33,8 @@ struct SceneRef {
uint32_t id{}; uint32_t id{};
eSceneType sceneType{}; eSceneType sceneType{};
std::string name; std::string name;
NiPoint3 scenePosition; // version 33 only: editor bounding sphere center NiPoint3 unknown1;
float sceneRadius{}; // version 33 only: editor bounding sphere radius float unknown2{};
NiColor color; NiColor color;
std::unique_ptr<Level> level; std::unique_ptr<Level> level;
std::map<uint32_t, LUTriggers::Trigger*> triggers; std::map<uint32_t, LUTriggers::Trigger*> triggers;