diff options
author | Paul Gilbert | 2016-11-07 21:56:03 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-11-07 21:56:03 -0500 |
commit | f11033df6547a2e384a4b92d36109a86cfd525cc (patch) | |
tree | 0609fbbb7506bf613c0235dfa98b70c046419e29 | |
parent | 61d14b94d558e25105b6d8c2620b83f6d9b53d52 (diff) | |
download | scummvm-rg350-f11033df6547a2e384a4b92d36109a86cfd525cc.tar.gz scummvm-rg350-f11033df6547a2e384a4b92d36109a86cfd525cc.tar.bz2 scummvm-rg350-f11033df6547a2e384a4b92d36109a86cfd525cc.zip |
TITANIC: Fix drawing screen after loading game using in-game PET
-rw-r--r-- | engines/titanic/main_game_window.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/engines/titanic/main_game_window.cpp b/engines/titanic/main_game_window.cpp index 4ee7154e76..6438929ae5 100644 --- a/engines/titanic/main_game_window.cpp +++ b/engines/titanic/main_game_window.cpp @@ -150,6 +150,14 @@ void CMainGameWindow::draw() { scrManager->clearSurface(SURFACE_BACKBUFFER, &_gameManager->_bounds); switch (_gameManager->_gameState._mode) { + case GSMODE_PENDING_LOAD: + // Pending savegame to load + _gameManager->_gameState.setMode(GSMODE_INTERACTIVE); + _project->loadGame(_pendingLoadSlot); + _pendingLoadSlot = -1; + + // Deliberate fall-through to draw loaded game + case GSMODE_INTERACTIVE: case GSMODE_CUTSCENE: if (_gameManager->_gameState._petActive) @@ -165,12 +173,6 @@ void CMainGameWindow::draw() { _vm->_filesManager->insertCD(scrManager); break; - case GSMODE_PENDING_LOAD: - // Pending savegame to load - _gameManager->_gameState.setMode(GSMODE_INTERACTIVE); - _vm->_window->_project->loadGame(_pendingLoadSlot); - break; - default: break; } |