From e9f4fc638ed904cc0dcdac24ea7708c9a220a702 Mon Sep 17 00:00:00 2001 From: briaguya <70942617+briaguya-ai@users.noreply.github.com> Date: Tue, 17 Oct 2023 22:04:12 -0400 Subject: update to latest version used by SoH --- ZAPD/ZRoom/Commands/SetPathways.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ZAPD/ZRoom/Commands/SetPathways.cpp') diff --git a/ZAPD/ZRoom/Commands/SetPathways.cpp b/ZAPD/ZRoom/Commands/SetPathways.cpp index 52d400a..f3bdb08 100644 --- a/ZAPD/ZRoom/Commands/SetPathways.cpp +++ b/ZAPD/ZRoom/Commands/SetPathways.cpp @@ -28,6 +28,14 @@ void SetPathways::ParseRawDataLate() pathwayList.SetNumPaths(numPaths); } + if (Globals::Instance->otrMode) + { + auto zPath = (ZPath*)parent->FindResource(segmentOffset); + + if (zPath != nullptr) + pathwayList = *zPath; + } + pathwayList.ExtractFromFile(segmentOffset); } @@ -42,7 +50,7 @@ void SetPathways::DeclareReferencesLate(const std::string& prefix) std::string SetPathways::GetBodySourceCode() const { std::string listName; - Globals::Instance->GetSegmentedPtrName(cmdArg2, parent, "Path", listName); + Globals::Instance->GetSegmentedPtrName(cmdArg2, parent, "Path", listName, parent->workerID); return StringHelper::Sprintf("SCENE_CMD_PATH_LIST(%s)", listName.c_str()); } -- cgit v1.2.3