JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
bouncy ship :)
[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) {
        }
 
        if(state == GAMEPLAY) {
-               bang = collides(SPRITE(&ship));
+               Sprite *r = collides(SPRITE(&ship));
+               if(r) {
+                       bounce(r, SPRITE(&ship));
+               }
        }
 
        ms_frame = SDL_GetTicks() - ms_end;
        }
 
        ms_frame = SDL_GetTicks() - ms_end;