mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-02 23:49:40 +00:00
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
This commit is contained in:
parent
abc879f2d8
commit
2b593f30a1
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user