Commit 919ccd0d authored by Rémi Verschelde's avatar Rémi Verschelde

Devtools: Fix toggling console out of devtools mode

parent 866ceee5
Pipeline #6422839 passed with stage
in 5 minutes 13 seconds
......@@ -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();
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment