diff options
Diffstat (limited to 'engines/simon/animation.cpp')
-rw-r--r-- | engines/simon/animation.cpp | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/engines/simon/animation.cpp b/engines/simon/animation.cpp index e4353c9815..b38fcd71a7 100644 --- a/engines/simon/animation.cpp +++ b/engines/simon/animation.cpp @@ -148,14 +148,9 @@ void MoviePlayer::play() { startSound(); - while (_frameNum < _framesCount) { + while (_frameNum < _framesCount) handleNextFrame(); - if (_leftButtonDown && _rightButtonDown && !_vm->getBitFlag(41)) { - _frameNum = _framesCount; - } - } - close(); _vm->o_killAnimate(); @@ -167,6 +162,12 @@ void MoviePlayer::play() { } } +void MoviePlayer::close() { + _fd.close(); + free(_frameBuffer1); + free(_frameBuffer2); +} + void MoviePlayer::startSound() { uint32 tag = _fd.readUint32BE(); if (tag == MKID_BE('WAVE')) { @@ -182,12 +183,6 @@ void MoviePlayer::startSound() { } } -void MoviePlayer::close() { - _fd.close(); - free(_frameBuffer1); - free(_frameBuffer2); -} - void MoviePlayer::nextFrame() { if (!_omniTV) return; |