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
rewording bounce calculations.
[vor.git]
/
main.c
diff --git
a/main.c
b/main.c
index
097969c
..
b075f0d
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-510,7
+510,10
@@
draw() {
}
if(state == GAMEPLAY) {
- bang = collides(SPRITE(&ship));
+ Sprite *r = collides(SPRITE(&ship));
+ if(r) {
+ bounce(r, SPRITE(&ship));
+ }
}
ms_frame = SDL_GetTicks() - ms_end;