fix: scene objects of LOT 1 are not loaded, as in the client

ReadLvlObjectData (1.10.64, 0x0103ba20) loads every scene object except
those of LOT 1 (the player). The world spawned them; now it skips them.
No 1.10.64 scene has one; one older client scene file has two.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-10-27 10:29:43 -05:00
parent 9367ad6207
commit 88d08aa2b0

View File

@@ -135,7 +135,7 @@ void Level::LoadSceneObjects(const std::vector<SceneObject>& objects) {
Game::zoneManager->GetZoneMut()->SetSpawnRot(obj.rotation);
}
// We should never have more than 1 zone control object; and the client never loads a scene object of LOT 1 (the
// We should never have more than 1 zone control object, and the client never loads a scene object of LOT 1 (the
// player; ReadLvlObjectData)
bool skipLoadingObject = obj.lot == zoneControlObject->GetLOT() || obj.lot == 1;
for (const auto& data : obj.settings | std::views::values) {