aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
}
}