Fix graphics glitch in the rat caves in ITE. Closes bug #1735437 - "ITE: Sprite priority in rat caves"

svn-id: r28064
This commit is contained in:
Filippos Karapetis 2007-07-14 03:44:47 +00:00
parent 5a85103374
commit 9efa640f9c

View File

@ -1605,7 +1605,9 @@ void Actor::handleActions(int msec, bool setup) {
if (actor->_lastZone)
stepZoneAction(actor, actor->_lastZone, true, false);
actor->_lastZone = hitZone;
if (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))
stepZoneAction(actor, hitZone, false, false);
}
}