diff options
author | Strangerke | 2013-10-11 08:16:38 +0200 |
---|---|---|
committer | Strangerke | 2013-10-11 08:16:38 +0200 |
commit | ccebfc78fdb1b9e330897e0119cd87b59344154a (patch) | |
tree | 8a6caa7b264f157efd303ee785584e027b1849e7 /engines/avalanche | |
parent | aba6b02b5b2bf7cb822e2d35023d2927622d007f (diff) | |
download | scummvm-rg350-ccebfc78fdb1b9e330897e0119cd87b59344154a.tar.gz scummvm-rg350-ccebfc78fdb1b9e330897e0119cd87b59344154a.tar.bz2 scummvm-rg350-ccebfc78fdb1b9e330897e0119cd87b59344154a.zip |
AVALANCHE: Remove useless check and move some comments in Sequence
Diffstat (limited to 'engines/avalanche')
-rw-r--r-- | engines/avalanche/sequence.cpp | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/engines/avalanche/sequence.cpp b/engines/avalanche/sequence.cpp index a9de50f49b..10fa7f0a00 100644 --- a/engines/avalanche/sequence.cpp +++ b/engines/avalanche/sequence.cpp @@ -70,9 +70,12 @@ void Sequence::startTimer() { } void Sequence::startTimerImmobilized() { - _vm->_userMovesAvvy = false; // They can't move. - _vm->_animation->stopWalking(); // And they're not moving now. - startTimer(); // Apart from that, it's the same thing. + // They can't move. + _vm->_userMovesAvvy = false; + // And they're not moving now. + _vm->_animation->stopWalking(); + // Apart from that, it's the same thing. + startTimer(); } void Sequence::shoveLeft() { @@ -86,23 +89,25 @@ void Sequence::callSequencer() { switch (curSeq) { case 0: - return; // No more routines. + // No more routines. + return; break; - case kNowFlip: // Flip room. + case kNowFlip: + // Flip room. _vm->_userMovesAvvy = true; _vm->flipRoom(_flipToWhere, _flipToPed); - // CHECKME: Always true? - if (curSeq == kNowFlip) - shoveLeft(); + shoveLeft(); break; } - if (curSeq <= 176) { // Show a frame. + if (curSeq <= 176) { + // Show a frame. _vm->_background->draw(-1, -1, curSeq - 1); shoveLeft(); } - startTimer(); // Make sure this PROC gets called again. + // Make sure this PROC gets called again. + startTimer(); } void Sequence::startHallSeq(Room whither, byte ped) { @@ -164,8 +169,10 @@ void Sequence::startMusicRoomSeq2(Room whither, byte ped) { void Sequence::startGeidaLuteSeq() { init(5); - add(6); // He falls asleep... - startTimer(); // Not really closing, but we're using the same procedure. + // He falls asleep... + add(6); + // Not really closing, but we're using the same procedure. + startTimer(); } void Sequence::startMusicRoomSeq() { |