Bugfixes with new fruit landing routines
This commit is contained in:
parent
8ba170e987
commit
f3961f0b0b
2
rc.c
2
rc.c
|
@ -1779,6 +1779,7 @@ void checkfruitcollide (sprite_t *s) {
|
||||||
else if (s2->dead) continue;
|
else if (s2->dead) continue;
|
||||||
else if (s2->caughtby) continue;
|
else if (s2->caughtby) continue;
|
||||||
else if (s2->teleporting) continue;
|
else if (s2->teleporting) continue;
|
||||||
|
else if (!isnettable(s2)) continue;
|
||||||
|
|
||||||
// did we hit it?
|
// did we hit it?
|
||||||
xdiff = s->x - s2->x;
|
xdiff = s->x - s2->x;
|
||||||
|
@ -1796,6 +1797,7 @@ void checkfruitcollide (sprite_t *s) {
|
||||||
playfx(FX_KILL);
|
playfx(FX_KILL);
|
||||||
// if so, it turns into a fruit too!
|
// if so, it turns into a fruit too!
|
||||||
s2->id = fruittypes[curfruittype];
|
s2->id = fruittypes[curfruittype];
|
||||||
|
s2->score = getpoints(s2->id);
|
||||||
|
|
||||||
/* increment fruit type */
|
/* increment fruit type */
|
||||||
curfruittype++;
|
curfruittype++;
|
||||||
|
|
Loading…
Reference in New Issue