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/init.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/init.cpp')
-rw-r--r-- | engines/gob/init.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/gob/init.cpp b/engines/gob/init.cpp index 2f1dbe5326..85f95fb261 100644 --- a/engines/gob/init.cpp +++ b/engines/gob/init.cpp @@ -37,7 +37,7 @@ #include "gob/palanim.h" #include "gob/sound.h" #include "gob/video.h" -#include "gob/imd.h" +#include "gob/videoplayer.h" namespace Gob { @@ -167,8 +167,14 @@ void Init::initGame(const char *totName) { _vm->_dataIO->closeData(imdHandle); _vm->_draw->initScreen(); _vm->_draw->_cursorIndex = -1; + _vm->_util->longDelay(200); // Letting everything settle - _vm->_imdPlayer->play("coktel", -1, -1, true); + + if (_vm->_vidPlayer->openVideo("coktel.imd")) { + _vm->_vidPlayer->play(); + _vm->_vidPlayer->closeVideo(); + } + _vm->_draw->closeScreen(); } else if ((imdHandle = _vm->_dataIO->openData("coktel.clt")) >= 0) { _vm->_draw->initScreen(); |