diff options
author | Paul Gilbert | 2017-08-10 20:03:03 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-08-10 20:03:03 -0400 |
commit | 388420c84a6615b3b0f825ae2d2e76c0448a699c (patch) | |
tree | f17dbeca8aa26d8d28448bd35cfa6b7d79c34064 | |
parent | 2df37f4eb0dc661c0159ca397e66ef6fe19de64c (diff) | |
download | scummvm-rg350-388420c84a6615b3b0f825ae2d2e76c0448a699c.tar.gz scummvm-rg350-388420c84a6615b3b0f825ae2d2e76c0448a699c.tar.bz2 scummvm-rg350-388420c84a6615b3b0f825ae2d2e76c0448a699c.zip |
TITANIC: Ignore Ctrl+C key until actually in-game
-rw-r--r-- | engines/titanic/main_game_window.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/titanic/main_game_window.cpp b/engines/titanic/main_game_window.cpp index 53539d84a5..053712d412 100644 --- a/engines/titanic/main_game_window.cpp +++ b/engines/titanic/main_game_window.cpp @@ -336,8 +336,10 @@ void CMainGameWindow::keyDown(Common::KeyState keyState) { } else if (keyState.keycode == Common::KEYCODE_c && (keyState.flags & Common::KBD_CTRL)) { // Cheat action - CViewItem *newView = _project->parseView("Cheat Room.Node 1.Cheat Rooms View"); - _gameManager->_gameState.changeView(newView, nullptr); + if (_project && g_vm->canLoadGameStateCurrently()) { + CViewItem *newView = _project->parseView("Cheat Room.Node 1.Cheat Rooms View"); + _gameManager->_gameState.changeView(newView, nullptr); + } } else if (_inputAllowed) { _gameManager->_inputTranslator.keyDown(keyState); |