Skip to content

Commit

Permalink
fix: more than 1 zone control object causing issues with scripted min…
Browse files Browse the repository at this point in the history
…igames (#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
  • Loading branch information
EmosewaMC authored Dec 24, 2023
1 parent 81dc4e2 commit dbf37c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dZoneManager/Level.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit dbf37c2

Please sign in to comment.