aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/actor.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2007-08-20 19:14:22 +0000
committerFilippos Karapetis2007-08-20 19:14:22 +0000
commita6171ec34928af401a8b4549519fd28828195b57 (patch)
treeb7ff0c02cc491b7d9bcbbf3586f285d0f9c108b6 /engines/saga/actor.cpp
parentef1fca15f05c631b6b716e688c9eb1f3cdee76e3 (diff)
downloadscummvm-rg350-a6171ec34928af401a8b4549519fd28828195b57.tar.gz
scummvm-rg350-a6171ec34928af401a8b4549519fd28828195b57.tar.bz2
scummvm-rg350-a6171ec34928af401a8b4549519fd28828195b57.zip
Fix for bug #1776993 - "ITE: Cannot exit a room (regression)"
svn-id: r28679
Diffstat (limited to 'engines/saga/actor.cpp')
-rw-r--r--engines/saga/actor.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/saga/actor.cpp b/engines/saga/actor.cpp
index c2ecff4a1a..cc8303f402 100644
--- a/engines/saga/actor.cpp
+++ b/engines/saga/actor.cpp
@@ -1608,8 +1608,11 @@ void Actor::handleActions(int msec, bool setup) {
stepZoneAction(actor, actor->_lastZone, true, false);
actor->_lastZone = hitZone;
// WORKAROUND for graphics glitch in the rat caves. Don't do this step zone action in the rat caves
- // (room 51) to avoid the glitch
- if (hitZone && !(_vm->getGameType() == GType_ITE && _vm->_scene->currentSceneNumber() == 51))
+ // (room 51) for hitzone 24577 (the door with the copy protection) to avoid the glitch. This glitch
+ // happens because the copy protection is supposed to kick in at this point, but it's bypassed
+ // (with permission from Wyrmkeep Entertainment)
+ if (hitZone &&
+ !(_vm->getGameType() == GType_ITE && _vm->_scene->currentSceneNumber() == 51 && hitZone->getHitZoneId() == 24577))
stepZoneAction(actor, hitZone, false, false);
}
}