aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2012-09-10 23:54:46 +0300
committerFilippos Karapetis2012-09-11 00:34:30 +0300
commitde75d25725bb58870b74f780d4941eb7f66639b0 (patch)
treeffe77be2fb0ee67c4893270034abf4a9d049df04
parent455ad8a5bc4a443850847f960f8eeda262aee0bb (diff)
downloadscummvm-rg350-de75d25725bb58870b74f780d4941eb7f66639b0.tar.gz
scummvm-rg350-de75d25725bb58870b74f780d4941eb7f66639b0.tar.bz2
scummvm-rg350-de75d25725bb58870b74f780d4941eb7f66639b0.zip
TOLTECS: Remove a superfluous seek
-rw-r--r--engines/toltecs/movie.cpp7
1 files changed, 1 insertions, 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;