Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
vor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2897a4e
)
make space key pause too
author
Jason Woofenden
<jason@jasonwoof.com>
Sat, 19 Feb 2011 03:25:44 +0000
(22:25 -0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Sat, 19 Feb 2011 03:25:44 +0000
(22:25 -0500)
main.c
patch
|
blob
|
history
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;