From 040d8e10fe7aecb0cbe1edf4ea05a92a3574d87e Mon Sep 17 00:00:00 2001 From: Andrew Kurushin Date: Sat, 23 Feb 2008 14:42:46 +0000 Subject: fix bug 1900244 "ITE: Strange animation when returning to prison cell" svn-id: r30924 --- engines/saga/actor.cpp | 8 -------- engines/saga/actor_walk.cpp | 3 +++ 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'engines/saga') diff --git a/engines/saga/actor.cpp b/engines/saga/actor.cpp index 169edbb85d..52b921d000 100644 --- a/engines/saga/actor.cpp +++ b/engines/saga/actor.cpp @@ -1266,14 +1266,6 @@ void Actor::loadState(Common::InSaveFile *in) { for (i = 0; i < _actorsCount; i++) { ActorData *a = _actors[i]; a->loadState(_vm->getCurrentLoadVersion(), in); - - // Fix bug #1258633 "ITE: Second Rif appears in wall of dog castle prison" - // For some reason in some cases actor position is all wrong, so Rif - // crawls to his original poition - if (i == 122 && _vm->getGameType() == GType_ITE) { - a->_location.x = 130; - a->_location.y = 55; - } } for (i = 0; i < _objsCount; i++) { diff --git a/engines/saga/actor_walk.cpp b/engines/saga/actor_walk.cpp index 7e66a67560..0c573c0c40 100644 --- a/engines/saga/actor_walk.cpp +++ b/engines/saga/actor_walk.cpp @@ -218,6 +218,9 @@ void Actor::updateActorsScene(int actorsEntrance) { if (actor->_sceneNumber == _vm->_scene->currentSceneNumber()) { actor->_inScene = true; actor->_actionCycle = (_vm->_rnd.getRandomNumber(7) & 0x7) * 4; // 1/8th chance + if (actor->_currentAction != kActionFreeze) { + actor->_currentAction = kActionWait; + } } } -- cgit v1.2.3