Correct string animation.
svn-id: r10931
This commit is contained in:
parent
b582881471
commit
4e5a40f013
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -60,7 +60,7 @@ struct BobSlot {
|
|||
//! animation stuff
|
||||
bool animating;
|
||||
struct {
|
||||
uint16 speed, speedBak;
|
||||
int16 speed, speedBak; // Must be signed!
|
||||
|
||||
//! string based animation
|
||||
struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue