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
(from parent 1:
a9bcdd0
)
stop busy-waiting while paused
author
Jason Woofenden
<jason283@herkamire.com>
Sun, 26 Apr 2009 05:22:22 +0000
(
01:22
-0400)
committer
Jason Woofenden
<jason283@herkamire.com>
Sun, 26 Apr 2009 05:22:22 +0000
(
01:22
-0400)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index
fe864bd
..
14a486b
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-638,7
+638,7
@@
gameloop() {
autopilot(t_frame);
}
- while(SDL_PollEvent(&e)) {
+ while(paused ? SDL_WaitEvent(&e) : SDL_PollEvent(&e)) {
switch(e.type) {
case SDL_QUIT: return;
case SDL_KEYDOWN: