diff options
-rw-r--r-- | engines/avalanche/sequence.cpp | 7 | ||||
-rw-r--r-- | engines/avalanche/sequence.h | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/engines/avalanche/sequence.cpp b/engines/avalanche/sequence.cpp index 871a38573a..a17200ebc0 100644 --- a/engines/avalanche/sequence.cpp +++ b/engines/avalanche/sequence.cpp @@ -77,7 +77,9 @@ void Sequence::startToOpen() { } void Sequence::shoveLeft() { - memcpy(_seq, _seq+1, kSeqLength - 1); // Shift everything to the left. + for (uint i = 0; i < kSeqLength - 1; i++) + _seq[i] = _seq[i + 1]; + _seq[kSeqLength - 1] = 0; } void Sequence::callSequencer() { @@ -93,8 +95,7 @@ void Sequence::callSequencer() { break; } - if ((_seq[0] >= 1) && (_seq[0] <= 176)) { - // Show a frame. + if (_seq[0] <= 176) { // Show a frame. _vm->_background->drawBackgroundSprite(-1, -1, _seq[0] - 1); shoveLeft(); } diff --git a/engines/avalanche/sequence.h b/engines/avalanche/sequence.h index 67650d519d..c1461c696c 100644 --- a/engines/avalanche/sequence.h +++ b/engines/avalanche/sequence.h @@ -54,7 +54,7 @@ public: private: AvalancheEngine *_vm; - void shoveLeft(); // This PROC is called by Timer when it's time to do another frame. + void shoveLeft(); // This is called by Timer when it's time to do another frame. It shifts everything to the left. }; } // End of namespace Avalanche. |