From: Jason Woofenden Date: Mon, 25 Apr 2005 20:57:12 +0000 (+0000) Subject: you can quite regardles of game state X-Git-Tag: 0.3~18 X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=commitdiff_plain;h=427e28fed419596ebf8b4b5b49d8e27fbb97b185 you can quite regardles of game state --- diff --git a/main.c b/main.c index 309da05..1680129 100644 --- a/main.c +++ b/main.c @@ -788,10 +788,6 @@ gameloop() { SDL_PumpEvents(); keystate = SDL_GetKeyState(NULL); - if(state != HIGH_SCORE_ENTRY && (keystate[SDLK_q] || keystate[SDLK_ESCAPE])) { - return 0; - } - if(keystate[SDLK_SPACE] && (state == HIGH_SCORE_DISPLAY || state == TITLE_PAGE)) { reset_rocks(); @@ -845,6 +841,11 @@ gameloop() { state_timeout = -1; } } + + if(state != HIGH_SCORE_ENTRY && (keystate[SDLK_q] || keystate[SDLK_ESCAPE])) { + return 0; + } + } }