aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/sfuncs.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2007-06-04 23:10:59 +0000
committerFilippos Karapetis2007-06-04 23:10:59 +0000
commit2b593f30a14a23f7ef4db9048a5d429ec4bc22ee (patch)
tree14edeb6d1299c3d32d835755d5d4405660c39603 /engines/saga/sfuncs.cpp
parentabc879f2d8d84c87a6bcc4e94ada39f2bed56d52 (diff)
downloadscummvm-rg350-2b593f30a14a23f7ef4db9048a5d429ec4bc22ee.tar.gz
scummvm-rg350-2b593f30a14a23f7ef4db9048a5d429ec4bc22ee.tar.bz2
scummvm-rg350-2b593f30a14a23f7ef4db9048a5d429ec4bc22ee.zip
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
Diffstat (limited to 'engines/saga/sfuncs.cpp')
-rw-r--r--engines/saga/sfuncs.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/saga/sfuncs.cpp b/engines/saga/sfuncs.cpp
index 5190537db8..bebacc39d3 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));
}