From 4e5a40f013e2499b843c8f79752efaffa0135afc Mon Sep 17 00:00:00 2001 From: David Eriksson Date: Tue, 21 Oct 2003 12:07:33 +0000 Subject: Correct string animation. svn-id: r10931 --- queen/graphics.cpp | 2 +- queen/graphics.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'queen') 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 { -- cgit v1.2.3