JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fixing typo
authorJason Woofenden <jason@jasonwoof.com>
Mon, 13 Dec 2004 22:47:59 +0000 (22:47 +0000)
committerJason Woofenden <jason@jasonwoof.com>
Mon, 13 Dec 2004 22:47:59 +0000 (22:47 +0000)
main.c

diff --git a/main.c b/main.c
index 5724a1a..a1ef981 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1118,7 +1118,7 @@ int gameloop() {
                                if(rock[i].active) {
                                        rock[i].x += rock[i].xvel*movementrate;
                                        rock[i].y += rock[i].yvel*movementrate + yscroll;
-                                       if((rock[i].y > YSIZE && rock[i].y > 0) || (rock[i].y < -rock[i].image->h && rock[i].y < 0)) {
+                                       if((rock[i].y > YSIZE && rock[i].yvel > 0) || (rock[i].y < -rock[i].image->h && rock[i].yvel < 0)) {
                                                if(rock[i].dead) {
                                                        rock[i].dead = 0;
                                                        rock[i].active = 0;