aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Montoir2003-12-03 14:51:16 +0000
committerGregory Montoir2003-12-03 14:51:16 +0000
commitd8d369a086cbd2e3c13ccdeb045a54978a6705b3 (patch)
tree4876bcb68840c4f3b1584f646cc3912d9c894e03
parent5bfbb9e954076cc9782121f4e8a490de9ce3019d (diff)
downloadscummvm-rg350-d8d369a086cbd2e3c13ccdeb045a54978a6705b3.tar.gz
scummvm-rg350-d8d369a086cbd2e3c13ccdeb045a54978a6705b3.tar.bz2
scummvm-rg350-d8d369a086cbd2e3c13ccdeb045a54978a6705b3.zip
fix walking person issue (noticeable when Azura is escaping from Floda)
svn-id: r11488
-rw-r--r--queen/walk.cpp4
1 files changed, 4 insertions, 0 deletions
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)
}
}