Flowers now disappear at end of level
Graphical effect: disappearing fruits/powerups make a puff when they disappear at end of level
This commit is contained in:
parent
1a41e3c2e9
commit
d17a689d00
14
rc.c
14
rc.c
|
@ -423,12 +423,20 @@ int main (int argc, char **argv) {
|
||||||
disablepowerups(PW_GUNNER);
|
disablepowerups(PW_GUNNER);
|
||||||
}
|
}
|
||||||
|
|
||||||
// kill all cards, so we don't have a pokereffect during endoflevel
|
// certain things disappear at end of level
|
||||||
// also kill the random level powerup if it exists
|
|
||||||
for (s2 = sprite; s2 ; s2 = nexts) {
|
for (s2 = sprite; s2 ; s2 = nexts) {
|
||||||
nexts = s2->next;
|
nexts = s2->next;
|
||||||
if (iscard(s2->id) || s2->id == P_MOVINGCARD || strstr(s2->name, "random_up")) {
|
if (iscard(s2->id) || s2->id == P_MOVINGCARD) {
|
||||||
|
// kill all cards, so we don't have a pokereffect during endoflevel
|
||||||
s2->dead = D_FINAL;
|
s2->dead = D_FINAL;
|
||||||
|
} else if (strstr(s2->name, "random_up")) {
|
||||||
|
// also kill the random level powerup if it exists
|
||||||
|
s2->dead = D_FINAL;
|
||||||
|
puffin(-1, s2->x, s2->y, "end_of_lev_pw_die", 0);
|
||||||
|
} else if (isflower(s2->id)) {
|
||||||
|
// also kill flowers
|
||||||
|
s2->dead = D_FINAL;
|
||||||
|
puffin(-1, s2->x, s2->y, "end_of_lev_fl_die", 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue