Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
vor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
work around compiler warnings in high score read
[vor.git]
/
main.c
diff --git
a/main.c
b/main.c
index
ae54912
..
d696ade
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-732,6
+732,12
@@
gameloop() {
SDL_SaveBMP(surf_screen, screenshot_filename);
}
break;
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;
case SDLK_p:
case SDLK_PAUSE:
paused = !paused;