From dbf37c2d2b86bdf1efba3e5984e5a55b564842ef Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Sun, 24 Dec 2023 09:17:04 -0800 Subject: [PATCH] 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 --- dZoneManager/Level.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dZoneManager/Level.cpp b/dZoneManager/Level.cpp index 60f69359..0a46dc89 100644 --- a/dZoneManager/Level.cpp +++ b/dZoneManager/Level.cpp @@ -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(std::stoi(data->GetValueAsString())); + skipLoadingObject |= static_cast(std::stoi(data->GetValueAsString())); break; } }