aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index bf7a03f..0b65c09 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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 :