diff options
Diffstat (limited to 'engines/gob/scenery_v1.cpp')
-rw-r--r-- | engines/gob/scenery_v1.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/gob/scenery_v1.cpp b/engines/gob/scenery_v1.cpp index e5a64f2321..5912d96100 100644 --- a/engines/gob/scenery_v1.cpp +++ b/engines/gob/scenery_v1.cpp @@ -29,12 +29,25 @@ #include "gob/anim.h" #include "gob/draw.h" #include "gob/game.h" +#include "gob/util.h" +#include "gob/cdrom.h" namespace Gob { Scenery_v1::Scenery_v1(GobEngine *vm) : Scenery(vm) { } +int16 Scenery_v1::loadAnim(char search) { + if (_vm->_cdrom->_cdPlaying) { + while (_vm->_cdrom->getTrackPos() != -1) + _vm->_util->longDelay(50); + + _vm->_cdrom->_cdPlaying = false; + } + + return Scenery::loadAnim(search); +} + // flags & 1 - do capture all area animation is occupying // flags & 4 == 0 - calculate animation final size // flags & 2 != 0 - don't check with "toRedraw"'s |