From: Jason Woofenden Date: Sat, 19 Feb 2011 03:25:44 +0000 (-0500) Subject: make space key pause too X-Git-Tag: 0.5.6~5 X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=commitdiff_plain;h=576f48e8dda673cfda2a7e0cd7672e01f87618d5;ds=sidebyside make space key pause too --- diff --git a/main.c b/main.c index ae54912..d696ade 100644 --- a/main.c +++ b/main.c @@ -732,6 +732,12 @@ gameloop() { SDL_SaveBMP(surf_screen, screenshot_filename); } break; + case SDLK_SPACE: + if(state != GAMEPLAY && state != DEAD_PAUSE) { + // don't conflict with space key to start a new game + break; + } + // else fall through case SDLK_p: case SDLK_PAUSE: paused = !paused;