Skip to content

Commit

Permalink
TITANIC: Ignore Ctrl+C key until actually in-game
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Aug 11, 2017
1 parent 2df37f4 commit 388420c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions engines/titanic/main_game_window.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 388420c

Please sign in to comment.