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) {
|
if (anim.string.buffer != NULL) {
|
||||||
--anim.speed;
|
--anim.speed;
|
||||||
if(anim.speed == 0) {
|
if(anim.speed <= 0) {
|
||||||
// jump to next entry
|
// jump to next entry
|
||||||
++anim.string.curPos;
|
++anim.string.curPos;
|
||||||
uint16 nextFrame = anim.string.curPos->frame;
|
uint16 nextFrame = anim.string.curPos->frame;
|
||||||
|
|
|
@ -60,7 +60,7 @@ struct BobSlot {
|
||||||
//! animation stuff
|
//! animation stuff
|
||||||
bool animating;
|
bool animating;
|
||||||
struct {
|
struct {
|
||||||
uint16 speed, speedBak;
|
int16 speed, speedBak; // Must be signed!
|
||||||
|
|
||||||
//! string based animation
|
//! string based animation
|
||||||
struct {
|
struct {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue