mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 22:58:09 +00:00
Correct string animation.
svn-id: r10931
This commit is contained in:
parent
b582881471
commit
4e5a40f013
@ -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…
Reference in New Issue
Block a user