aboutsummaryrefslogtreecommitdiff
path: root/queen
diff options
context:
space:
mode:
authorDavid Eriksson2003-10-21 12:07:33 +0000
committerDavid Eriksson2003-10-21 12:07:33 +0000
commit4e5a40f013e2499b843c8f79752efaffa0135afc (patch)
tree185c1e4016aed96cc6328cf5c974f43f618c9424 /queen
parentb582881471012646f8900ba7faadb03dfadafc47 (diff)
downloadscummvm-rg350-4e5a40f013e2499b843c8f79752efaffa0135afc.tar.gz
scummvm-rg350-4e5a40f013e2499b843c8f79752efaffa0135afc.tar.bz2
scummvm-rg350-4e5a40f013e2499b843c8f79752efaffa0135afc.zip
Correct string animation.
svn-id: r10931
Diffstat (limited to 'queen')
-rw-r--r--queen/graphics.cpp2
-rw-r--r--queen/graphics.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/queen/graphics.cpp b/queen/graphics.cpp
index 5225eb410f..359795f92f 100644
--- a/queen/graphics.cpp
+++ b/queen/graphics.cpp
@@ -258,7 +258,7 @@ void BobSlot::animOneStep() {
if (anim.string.buffer != NULL) {
--anim.speed;
- if(anim.speed == 0) {
+ if(anim.speed <= 0) {
// jump to next entry
++anim.string.curPos;
uint16 nextFrame = anim.string.curPos->frame;
diff --git a/queen/graphics.h b/queen/graphics.h
index 7e29de94a5..78bc765591 100644
--- a/queen/graphics.h
+++ b/queen/graphics.h
@@ -60,7 +60,7 @@ struct BobSlot {
//! animation stuff
bool animating;
struct {
- uint16 speed, speedBak;
+ int16 speed, speedBak; // Must be signed!
//! string based animation
struct {