aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorTorbjörn Andersson2008-01-19 11:20:15 +0000
committerTorbjörn Andersson2008-01-19 11:20:15 +0000
commit4cbd3e6af8272eadde5bd876625b09c12a751f75 (patch)
tree4e7305999f6d232e72012f2eaef80d88cf6c4cc5 /engines/saga
parent2671e5083c8f54ff12a8845524e2a37b758b1f2e (diff)
downloadscummvm-rg350-4cbd3e6af8272eadde5bd876625b09c12a751f75.tar.gz
scummvm-rg350-4cbd3e6af8272eadde5bd876625b09c12a751f75.tar.bz2
scummvm-rg350-4cbd3e6af8272eadde5bd876625b09c12a751f75.zip
Fixed a crash in the rat maze (reported on the forum) that made the game
uncompletable. I sense a great disturbance in the Force... as if millions of voices cried out "ScummVM 0.11.1" and were suddenly silenced. svn-id: r30562
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/actor_walk.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/saga/actor_walk.cpp b/engines/saga/actor_walk.cpp
index 677e833b19..0a3cc9aa4f 100644
--- a/engines/saga/actor_walk.cpp
+++ b/engines/saga/actor_walk.cpp
@@ -708,9 +708,8 @@ void Actor::handleActions(int msec, bool setup) {
// (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 (!(_vm->getGameType() == GType_ITE && _vm->_scene->currentSceneNumber() == 51 && hitZone->getHitZoneId() == 24577)) {
- if (hitZone)
- stepZoneAction(actor, hitZone, false, false);
+ if (hitZone && !(_vm->getGameType() == GType_ITE && _vm->_scene->currentSceneNumber() == 51 && hitZone->getHitZoneId() == 24577)) {
+ stepZoneAction(actor, hitZone, false, false);
}
}
}