diff options
| author | Filippos Karapetis | 2014-05-06 04:39:12 +0300 |
|---|---|---|
| committer | Filippos Karapetis | 2014-05-06 04:39:12 +0300 |
| commit | d88e165e00cc70540af05c06f4f32b1907bdcc09 (patch) | |
| tree | f0f093346534ae8002fa101c06fa8538668d72e3 /engines/mads/scene.cpp | |
| parent | c5878e401ce54713fb179f24a5744666571d2743 (diff) | |
| download | scummvm-rg350-d88e165e00cc70540af05c06f4f32b1907bdcc09.tar.gz scummvm-rg350-d88e165e00cc70540af05c06f4f32b1907bdcc09.tar.bz2 scummvm-rg350-d88e165e00cc70540af05c06f4f32b1907bdcc09.zip | |
MADS: Fix loading of V2 hotspots
Diffstat (limited to 'engines/mads/scene.cpp')
| -rw-r--r-- | engines/mads/scene.cpp | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/engines/mads/scene.cpp b/engines/mads/scene.cpp index e53061c750..62a0e2031c 100644 --- a/engines/mads/scene.cpp +++ b/engines/mads/scene.cpp @@ -477,26 +477,15 @@ void Scene::drawElements(ScreenTransition transitionType, bool surfaceFlag) { // Copy background for the dirty areas to the screen _dirtyAreas.copy(&_backgroundSurface, &_vm->_screen, _posAdjust); - // TODO: Remove this HACK when sprites are implemented for V2 games - if (_vm->getGameID() != GType_RexNebular) { - if (transitionType) { - // Fading in the screen - _vm->_screen.transition(transitionType, surfaceFlag); - _vm->_sound->startQueuedCommands(); - } else { - // Copy dirty areas to the screen - _dirtyAreas.copyToScreen(_vm->_screen._offset); - } - return; - } - // Handle dirty areas for foreground objects - _spriteSlots.setDirtyAreas(); + if (_vm->getGameID() == GType_RexNebular) // TODO: Implement for V2 games + _spriteSlots.setDirtyAreas(); _textDisplay.setDirtyAreas2(); _dirtyAreas.merge(1, DIRTY_AREAS_SIZE); // Draw sprites that have changed - _spriteSlots.drawSprites(&_vm->_screen); + if (_vm->getGameID() == GType_RexNebular) // TODO: Implement for V2 games + _spriteSlots.drawSprites(&_vm->_screen); // Draw text elements onto the view _textDisplay.draw(&_vm->_screen); |
