aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/avalanche/sequence.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/avalanche/sequence.cpp b/engines/avalanche/sequence.cpp
index a17200ebc0..712275e73d 100644
--- a/engines/avalanche/sequence.cpp
+++ b/engines/avalanche/sequence.cpp
@@ -83,20 +83,22 @@ void Sequence::shoveLeft() {
}
void Sequence::callSequencer() {
- switch (_seq[0]) {
+ byte curSeq = _seq[0];
+
+ switch (curSeq) {
case 0:
return; // No more routines.
break;
case 177: // Flip room.
_vm->_gyro->_userMovesAvvy = true;
_vm->_animation->flipRoom(_vm->_gyro->_flipToWhere, _vm->_gyro->_flipToPed);
- if (_seq[0] == 177)
+ if (curSeq == 177)
shoveLeft();
break;
}
- if (_seq[0] <= 176) { // Show a frame.
- _vm->_background->drawBackgroundSprite(-1, -1, _seq[0] - 1);
+ if (curSeq <= 176) { // Show a frame.
+ _vm->_background->drawBackgroundSprite(-1, -1, curSeq - 1);
shoveLeft();
}