From d8d369a086cbd2e3c13ccdeb045a54978a6705b3 Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Wed, 3 Dec 2003 14:51:16 +0000 Subject: fix walking person issue (noticeable when Azura is escaping from Floda) svn-id: r11488 --- queen/walk.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/queen/walk.cpp b/queen/walk.cpp index 6837c77fd6..91127f5091 100644 --- a/queen/walk.cpp +++ b/queen/walk.cpp @@ -249,6 +249,7 @@ void Walk::animatePerson(const MovePersonData *mpd, uint16 image, uint16 bobNum, uint16 i; for (i = 1; i <= _walkDataCount; ++i) { WalkData *pwd = &_walkData[i]; + // unpack necessary frames for bob animation uint16 dstFrame = image; uint16 srcFrame = ABS(pwd->anim.firstFrame); @@ -284,6 +285,9 @@ void Walk::animatePerson(const MovePersonData *mpd, uint16 image, uint16 bobNum, else { pbs->speed = scale * (mpd->moveSpeed / 2) / 100; } + if (pbs->speed < 1) { + pbs->speed = 1; + } // XXX if (cutQuit) } } -- cgit v1.2.3