X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=main.c;h=d696ade4edb8aa3d422abecb801896582f8e2f36;hp=ae549126fafd9bbe15104fa965ab1c015ca602a5;hb=98d1a3e9455c7c64c4b219c9022d0e1efb187cf3;hpb=1c7fee35c6c96c3a5c0c83dfbefe09955772b6fa 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;