diff options
author | Sven Hesse | 2007-07-30 15:53:38 +0000 |
---|---|---|
committer | Sven Hesse | 2007-07-30 15:53:38 +0000 |
commit | f06f150c76f43f1dc97eadea5af7bf46ddba9ba4 (patch) | |
tree | 9efcaf3b3a29f8548b20792b6c073b3c336d38a6 /engines/gob/util.cpp | |
parent | c8aae376a92c9fbb6d37b81c35de6d030a37319a (diff) | |
download | scummvm-rg350-f06f150c76f43f1dc97eadea5af7bf46ddba9ba4.tar.gz scummvm-rg350-f06f150c76f43f1dc97eadea5af7bf46ddba9ba4.tar.bz2 scummvm-rg350-f06f150c76f43f1dc97eadea5af7bf46ddba9ba4.zip |
Restructured and cleaned-up IMD playing
svn-id: r28327
Diffstat (limited to 'engines/gob/util.cpp')
-rw-r--r-- | engines/gob/util.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/engines/gob/util.cpp b/engines/gob/util.cpp index 1b20ca249e..ec8bb59f06 100644 --- a/engines/gob/util.cpp +++ b/engines/gob/util.cpp @@ -32,7 +32,6 @@ #include "gob/dataio.h" #include "gob/draw.h" #include "gob/game.h" -#include "gob/imd.h" #include "gob/sound.h" #include "gob/video.h" @@ -301,7 +300,6 @@ void Util::setFrameRate(int16 rate) { _vm->_global->_frameWaitTime = 1000 / rate; _vm->_global->_startFrameTime = getTimeKey(); - _vm->_imdPlayer->_frameDelay = 0; } void Util::waitEndFrame() { @@ -312,17 +310,13 @@ void Util::waitEndFrame() { time = getTimeKey() - _vm->_global->_startFrameTime; if ((time > 1000) || (time < 0)) { _vm->_global->_startFrameTime = getTimeKey(); - _vm->_imdPlayer->_frameDelay = 0; return; } - if (_vm->_global->_frameWaitTime - time > 0) { - _vm->_imdPlayer->_frameDelay = 0; - delay(_vm->_global->_frameWaitTime - _vm->_imdPlayer->_frameDelay - time); - } + if ((_vm->_global->_frameWaitTime - time) > 0) + delay(_vm->_global->_frameWaitTime - time); _vm->_global->_startFrameTime = getTimeKey(); - _vm->_imdPlayer->_frameDelay = time - _vm->_global->_frameWaitTime; } void Util::setScrollOffset(int16 x, int16 y) { |