From de75d25725bb58870b74f780d4941eb7f66639b0 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 10 Sep 2012 23:54:46 +0300 Subject: TOLTECS: Remove a superfluous seek --- engines/toltecs/movie.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/engines/toltecs/movie.cpp b/engines/toltecs/movie.cpp index d4e260dc0c..5f6fe2cac6 100644 --- a/engines/toltecs/movie.cpp +++ b/engines/toltecs/movie.cpp @@ -103,7 +103,6 @@ void MoviePlayer::playMovie(uint resIndex) { byte chunkType = _vm->_arc->readByte(); uint32 chunkSize = _vm->_arc->readUint32LE(); byte *chunkBuffer = NULL; - uint32 movieOffset; debug(0, "chunkType = %d; chunkSize = %d", chunkType, chunkSize); @@ -116,8 +115,6 @@ void MoviePlayer::playMovie(uint resIndex) { _vm->_arc->read(chunkBuffer, chunkSize); } - movieOffset = _vm->_arc->pos(); - switch (chunkType) { case kChunkFirstImage: case kChunkSubsequentImages: @@ -177,9 +174,7 @@ void MoviePlayer::playMovie(uint resIndex) { } delete[] chunkBuffer; - - _vm->_arc->seek(movieOffset, SEEK_SET); - + if (!handleInput()) break; -- cgit v1.2.3