From f3961f0b0bdb66e6262b1bc107bbc801f71bd72c Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Fri, 21 Nov 2008 09:07:00 +0000 Subject: [PATCH] Bugfixes with new fruit landing routines --- rc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rc.c b/rc.c index d5a195a..53ecd0c 100644 --- a/rc.c +++ b/rc.c @@ -1779,6 +1779,7 @@ void checkfruitcollide (sprite_t *s) { else if (s2->dead) continue; else if (s2->caughtby) continue; else if (s2->teleporting) continue; + else if (!isnettable(s2)) continue; // did we hit it? xdiff = s->x - s2->x; @@ -1796,6 +1797,7 @@ void checkfruitcollide (sprite_t *s) { playfx(FX_KILL); // if so, it turns into a fruit too! s2->id = fruittypes[curfruittype]; + s2->score = getpoints(s2->id); /* increment fruit type */ curfruittype++;