From 4cbd3e6af8272eadde5bd876625b09c12a751f75 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 19 Jan 2008 11:20:15 +0000 Subject: 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 --- engines/saga/actor_walk.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines/saga') 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); } } } -- cgit v1.2.3