mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-06-26 00:24:27 +00:00
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:
@@ -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) {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user