diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -164,13 +164,12 @@ int main(int argc, char *argv[]) { if ( event.key.keysym.sym == SDLK_q ) finished = 1; break; case SDL_KEYUP : - if ( !game->paused ) { - if ( event.key.keysym.sym == SDLK_SPACE ) game->thrusting = 0; - if ( event.key.keysym.sym == SDLK_LEFT ) game->turn_left = 0; - if ( event.key.keysym.sym == SDLK_RIGHT ) game->turn_right = 0; - if ( event.key.keysym.sym == SDLK_UP ) game->forward = 0; - if ( event.key.keysym.sym == SDLK_DOWN ) game->reverse = 0; - } + /* Process key releases even when paused */ + if ( event.key.keysym.sym == SDLK_SPACE ) game->thrusting = 0; + if ( event.key.keysym.sym == SDLK_LEFT ) game->turn_left = 0; + if ( event.key.keysym.sym == SDLK_RIGHT ) game->turn_right = 0; + if ( event.key.keysym.sym == SDLK_UP ) game->forward = 0; + if ( event.key.keysym.sym == SDLK_DOWN ) game->reverse = 0; if ( event.key.keysym.sym == SDLK_p ) game->pause_rel = 1; break; case SDL_VIDEOEXPOSE : |