From 09cdf29abee66876cfeb562dfd3bdad74b9cded4 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 3 Jul 2022 19:14:44 -0700 Subject: [PATCH] CHEWY: Fix loading savegames for combination lock closeup --- engines/chewy/chewy.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engines/chewy/chewy.cpp b/engines/chewy/chewy.cpp index 89bc197e8ad..00d125059eb 100644 --- a/engines/chewy/chewy.cpp +++ b/engines/chewy/chewy.cpp @@ -134,6 +134,13 @@ Common::Error ChewyEngine::loadGameStream(Common::SeekableReadStream *stream) { setPersonPos(_G(gameState).X[i], _G(gameState).Y[i], i, _G(gameState).Phase[i]); } + // WORKAROUND: The original doesn't allow saving in room 47 + // (combination lock close-up). This workaround fixes loading + if (_G(gameState)._personRoomNr[P_CHEWY] == 47) { + _G(gameState)._personHide[P_CHEWY] = false; + _G(gameState)._personHide[P_HOWARD] = false; + } + _G(auto_obj) = 0; enter_room(-1);