diff options
author | Gregory Montoir | 2003-10-18 19:40:11 +0000 |
---|---|---|
committer | Gregory Montoir | 2003-10-18 19:40:11 +0000 |
commit | 26aa6c9087c07bec892afc15b819c9b1d2197d9b (patch) | |
tree | 0aed34c69e4297a34a2b399a458dcddcf87cc4da /queen | |
parent | 3fdb2540c0772841af5800f66a8398bc84487e25 (diff) | |
download | scummvm-rg350-26aa6c9087c07bec892afc15b819c9b1d2197d9b.tar.gz scummvm-rg350-26aa6c9087c07bec892afc15b819c9b1d2197d9b.tar.bz2 scummvm-rg350-26aa6c9087c07bec892afc15b819c9b1d2197d9b.zip |
fix truck intro problem
svn-id: r10901
Diffstat (limited to 'queen')
-rw-r--r-- | queen/graphics.cpp | 5 | ||||
-rw-r--r-- | queen/graphics.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/queen/graphics.cpp b/queen/graphics.cpp index 95660cecce..40e1c2cdef 100644 --- a/queen/graphics.cpp +++ b/queen/graphics.cpp @@ -155,6 +155,8 @@ void Graphics::bobAnimString(uint32 bobnum, const AnimFrame *animBuf) { void Graphics::bobAnimNormal(uint32 bobnum, uint16 firstFrame, uint16 lastFrame, uint16 speed, bool rebound, bool xflip) { + debug(9, "Graphics::bobAnimNormal(%d, %d, %d, %d)", bobnum, firstFrame, lastFrame, speed); + BobSlot *pbs = &_bobs[bobnum]; pbs->active = true; pbs->animating = true; @@ -281,7 +283,7 @@ void BobSlot::animOneStep() { if(anim.speed == 0) { anim.speed = anim.speedBak; - uint16 nextFrame = frameNum + frameDir; + int16 nextFrame = frameNum + frameDir; if (nextFrame > anim.normal.lastFrame || nextFrame < anim.normal.firstFrame) { if (anim.normal.rebound) { frameDir *= -1; @@ -426,6 +428,7 @@ void Graphics::bobClear(uint32 bobnum) { pbs->active = 0; pbs->xflip = false; + pbs->animating = false; pbs->anim.string.buffer = NULL; pbs->moving = false; pbs->scale = 100; diff --git a/queen/graphics.h b/queen/graphics.h index ece8571910..5da3e39663 100644 --- a/queen/graphics.h +++ b/queen/graphics.h @@ -55,7 +55,7 @@ struct BobSlot { //! associated BobFrame uint16 frameNum; //! 'direction' for the next frame (-1, 1) - uint8 frameDir; + int frameDir; //! animation stuff bool animating; |