X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameTick.cpp;h=e737a4e95f3799cf42c9b3f33cdddbeb3c91bf72;hb=25fd991fca18b740e622d8cf50532f18af1b9711;hp=0b83cedef7f4e3853d76b4f4bd27118ceb94e6c6;hpb=aff8402e75951f0407020e7fa7c69f831c141ba1;p=lugaru.git diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp index 0b83ced..e737a4e 100644 --- a/Source/GameTick.cpp +++ b/Source/GameTick.cpp @@ -1022,20 +1022,23 @@ void Game::ProcessInput() printf("Stereo separation increased to %f\n", stereoseparation); } - /* Console */ - if (Input::isKeyPressed(consolekey)) { - console = !console; - if (console) { - OPENAL_SetFrequency(OPENAL_ALL); - } else { - freeze = 0; - waiting = false; + /* Devtools */ + if (devtools && !mainmenu) { + /* Console */ + if (Input::isKeyPressed(consolekey)) { + console = !console; + if (console) { + OPENAL_SetFrequency(OPENAL_ALL); + } else { + freeze = 0; + waiting = false; + } } - } - /* Devtools */ - if (devtools && !mainmenu && !console) { - ProcessDevInput(); + /* Other devtools, disabled when the console is shown */ + if (!console) { + ProcessDevInput(); + } } }