TITANIC: Ignore Ctrl+C key until actually in-game

This commit is contained in:
Paul Gilbert 2017-08-10 20:03:03 -04:00
parent 2df37f4eb0
commit 388420c84a

View File

@ -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);