From fc961908c59790840008049a1d97e675376312f9 Mon Sep 17 00:00:00 2001 From: Vincent Hamm Date: Sun, 28 Oct 2007 14:41:37 +0000 Subject: Find object fix Walk fix svn-id: r29291 --- engines/cruise/actor.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'engines/cruise/actor.cpp') diff --git a/engines/cruise/actor.cpp b/engines/cruise/actor.cpp index 57a2c0c1ca..be4d1a13f7 100644 --- a/engines/cruise/actor.cpp +++ b/engines/cruise/actor.cpp @@ -581,8 +581,7 @@ void valide_noeud(int16 table[], int16 p, int *nclick, int16 solution0[20 + 3][2 } //computePathfinding(returnVar2, params.X, params.Y, aniX, aniY, currentActor->stepX, currentActor->stepY); -int16 computePathfinding(int16 *pSolution, int16 x, int16 y, int16 destX, - int16 destY, int16 stepX, int16 stepY, int16 oldPathId) { +int16 computePathfinding(int16 *pSolution, int16 x, int16 y, int16 destX, int16 destY, int16 stepX, int16 stepY, int16 oldPathId) { persoStruct *perso; int num; @@ -762,16 +761,15 @@ int raoul_invstat[][13] = { void processAnimation(void) { objectParamsQuery params; int16 returnVar2[5]; - actorStruct *currentActor = &actorHead; + actorStruct *currentActor = actorHead.next; actorStruct *nextActor; while (currentActor) { nextActor = currentActor->next; - if (!currentActor->freeze && ((currentActor->type == 0) - || (currentActor->type == 1))) { - getMultipleObjectParam(currentActor->overlayNumber, - currentActor->idx, ¶ms); + if (!currentActor->freeze && ((currentActor->type == 0) || (currentActor->type == 1))) + { + getMultipleObjectParam(currentActor->overlayNumber, currentActor->idx, ¶ms); if (((animationStart && !currentActor->flag) || (!animationStart && currentActor->x_dest != -1 && currentActor->y_dest != -1)) && (currentActor->type == 0)) { // mouse animation -- cgit v1.2.3