aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/sfuncs.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2007-06-05 16:29:15 +0000
committerFilippos Karapetis2007-06-05 16:29:15 +0000
commit158193fe51c7cc578b056481024e264252675121 (patch)
treefbcaed12d9c197e0ee54a6b17b687b8d7edc9a73 /engines/saga/sfuncs.cpp
parent2f033e7a4c844bc8747ca5c7f6789a94277a48a6 (diff)
downloadscummvm-rg350-158193fe51c7cc578b056481024e264252675121.tar.gz
scummvm-rg350-158193fe51c7cc578b056481024e264252675121.tar.bz2
scummvm-rg350-158193fe51c7cc578b056481024e264252675121.zip
Add the hack for the staircase in the zeppelin in IHNM once more, apparently the cause for it is different than what I thought
svn-id: r27109
Diffstat (limited to 'engines/saga/sfuncs.cpp')
-rw-r--r--engines/saga/sfuncs.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/saga/sfuncs.cpp b/engines/saga/sfuncs.cpp
index fad2a26247..0c9d415c59 100644
--- a/engines/saga/sfuncs.cpp
+++ b/engines/saga/sfuncs.cpp
@@ -731,6 +731,14 @@ void Script::sfEnableZone(SCRIPTFUNC_PARAMS) {
int16 flag = thread->pop();
HitZone *hitZone;
+ // HACK: Don't disable the tear in scene 14, to keep the staircase functioning
+ // FIXME: Investigate why this hack is needed and remove it
+ if (_vm->getGameType() == GType_IHNM && _vm->_scene->currentChapterNumber() == 1 &&
+ _vm->_scene->currentSceneNumber() == 14) {
+ warning("sfEnableZone: HACK: Prevent unusable staircase");
+ return; // Do nothing
+ }
+
if (objectTypeId(objectId) == NULL)
return;
else if (objectTypeId(objectId) == kGameObjectHitZone)