diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/saga/interface.cpp | 18 | ||||
-rw-r--r-- | engines/saga/sprite.h | 3 |
2 files changed, 10 insertions, 11 deletions
diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp index 8d26e83fc2..072a755f5d 100644 --- a/engines/saga/interface.cpp +++ b/engines/saga/interface.cpp @@ -215,14 +215,16 @@ Interface::Interface(SagaEngine *vm) : _vm(vm) { // Main panel sprites _vm->_sprite->loadList(_vm->getResourceDescription()->mainPanelSpritesResourceId, _mainPanel.sprites); - // Option panel sprites - _vm->_sprite->loadList(_vm->getResourceDescription()->optionPanelSpritesResourceId, _optionPanel.sprites); - // Save panel sprites - _vm->_sprite->loadList(_vm->getResourceDescription()->warningPanelSpritesResourceId, _savePanel.sprites); - // Load panel sprites - _vm->_sprite->loadList(_vm->getResourceDescription()->warningPanelSpritesResourceId, _loadPanel.sprites); - // Quit panel sprites - _vm->_sprite->loadList(_vm->getResourceDescription()->warningPanelSpritesResourceId, _quitPanel.sprites); + if (!(_vm->getFeatures() & GF_NON_INTERACTIVE)) { + // Option panel sprites + _vm->_sprite->loadList(_vm->getResourceDescription()->optionPanelSpritesResourceId, _optionPanel.sprites); + // Save panel sprites + _vm->_sprite->loadList(_vm->getResourceDescription()->warningPanelSpritesResourceId, _savePanel.sprites); + // Load panel sprites + _vm->_sprite->loadList(_vm->getResourceDescription()->warningPanelSpritesResourceId, _loadPanel.sprites); + // Quit panel sprites + _vm->_sprite->loadList(_vm->getResourceDescription()->warningPanelSpritesResourceId, _quitPanel.sprites); + } if (_vm->getGameId() == GID_ITE) { _vm->_sprite->loadList(_vm->getResourceDescription()->defaultPortraitsResourceId, _defPortraits); diff --git a/engines/saga/sprite.h b/engines/saga/sprite.h index 26f92b7494..ebccc2c1f0 100644 --- a/engines/saga/sprite.h +++ b/engines/saga/sprite.h @@ -49,9 +49,6 @@ struct SpriteList { SpriteInfo *infoList; void freeMem() { - if (!spriteListResourceId) - return; - for (int i = 0; i < spriteCount; i++) { free(infoList[i].decodedBuffer); } |