Bugfixes with new fruit landing routines

This commit is contained in:
Rob Pearce 2008-11-21 09:07:00 +00:00
parent 8ba170e987
commit f3961f0b0b
1 changed files with 2 additions and 0 deletions

2
rc.c
View File

@ -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++;