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
stop busy-waiting while paused
[vor.git]
/
main.c
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: