Correct string animation.

svn-id: r10931
This commit is contained in:
David Eriksson 2003-10-21 12:07:33 +00:00
parent b582881471
commit 4e5a40f013
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -60,7 +60,7 @@ struct BobSlot {
//! animation stuff
bool animating;
struct {
uint16 speed, speedBak;
int16 speed, speedBak; // Must be signed!
//! string based animation
struct {