fix: more than 1 zone control object causing issues with scripted minigames (#1355)

* fix: more than 1 zone control object

Fixes an issue when players cannot load into Avant Gardens Survival and other script based minigames with more than 1 zone control object in the level files.  (why are there 26 zone control objects in BoNS and AGS)

* Update Level.cpp
This commit is contained in:
David Markowitz 2023-12-24 09:17:04 -08:00 committed by GitHub
parent 81dc4e2216
commit dbf37c2d2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -275,7 +275,7 @@ void Level::ReadSceneObjectDataChunk(std::istream& file, Header& header) {
}
// If this is a client only object, we can skip loading it
if (data->GetKey() == u"loadOnClientOnly") {
skipLoadingObject = static_cast<bool>(std::stoi(data->GetValueAsString()));
skipLoadingObject |= static_cast<bool>(std::stoi(data->GetValueAsString()));
break;
}
}