mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 15:07:28 +00:00
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:
parent
81dc4e2216
commit
dbf37c2d2b
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user