X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameTick.cpp;h=0b83cedef7f4e3853d76b4f4bd27118ceb94e6c6;hb=aff8402e75951f0407020e7fa7c69f831c141ba1;hp=c1b038671b454c23beb94698377197e455d84ca6;hpb=0d560a31c813321b1ef8b96e177ffd64457f3436;p=lugaru.git diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp index c1b0386..0b83ced 100644 --- a/Source/GameTick.cpp +++ b/Source/GameTick.cpp @@ -1022,18 +1022,6 @@ void Game::ProcessInput() printf("Stereo separation increased to %f\n", stereoseparation); } - /* Devtools */ - if (devtools && !mainmenu) { - ProcessDevInput(); - } -} - -void Game::ProcessDevInput() -{ - if (!devtools || mainmenu) { - return; - } - /* Console */ if (Input::isKeyPressed(consolekey)) { console = !console; @@ -1045,6 +1033,18 @@ void Game::ProcessDevInput() } } + /* Devtools */ + if (devtools && !mainmenu && !console) { + ProcessDevInput(); + } +} + +void Game::ProcessDevInput() +{ + if (!devtools || mainmenu || console) { + return; + } + if (Input::isKeyDown(SDL_SCANCODE_LALT)) { /* Enable editor */ if (Input::isKeyPressed(SDL_SCANCODE_M) && !Input::isKeyDown(SDL_SCANCODE_LSHIFT)) {