From 2b593f30a14a23f7ef4db9048a5d429ec4bc22ee Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 4 Jun 2007 23:10:59 +0000 Subject: [PATCH] IHNM: Add a temporary hack for the crash that occurs when climbing the staircase to the second floor of the zeppelin in chapter 1 svn-id: r27094 --- engines/saga/sfuncs.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/engines/saga/sfuncs.cpp b/engines/saga/sfuncs.cpp index 5190537db8e..bebacc39d31 100644 --- a/engines/saga/sfuncs.cpp +++ b/engines/saga/sfuncs.cpp @@ -731,6 +731,15 @@ void Script::sfEnableZone(SCRIPTFUNC_PARAMS) { if (objectTypeId(objectId) == kGameObjectHitZone) { hitZone = _vm->_scene->_objectMap->getHitZone(objectIdToIndex(objectId)); + } else if (_vm->getGameType() == GType_IHNM && _vm->_scene->currentChapterNumber() == 1 && + _vm->_scene->currentSceneNumber() == 14) { + // HACK: Don't disable the requested hitzone in room 14 in chapter 1 (Gorrister) of IHNM + // Apparently, this is used in that room to disable the tear at the very end of the + // corridor. This fixes the staircase in scenes 4 and 14 + // FIXME: Remove this hack + warning("HACK: Prevent crash at staircase with Gorrister"); + // Do nothing + return; } else { hitZone = _vm->_scene->_actionMap->getHitZone(objectIdToIndex(objectId)); }