X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=blobdiff_plain;f=Source%2FGameTick.cpp;h=e737a4e95f3799cf42c9b3f33cdddbeb3c91bf72;hp=0b83cedef7f4e3853d76b4f4bd27118ceb94e6c6;hb=919ccd0d70eab67f34ec14fe35925328f8413462;hpb=866ceee5776e7d8b31c736b2fdb2d417b4ca67a1 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(); + } } }