Adjusted appearance of forced speed powerup
This commit is contained in:
parent
e2b5879251
commit
5522481175
7
rc.c
7
rc.c
|
@ -6184,8 +6184,11 @@ void dogravity(sprite_t *s) {
|
||||||
if (boss) { // no fruits on boss levels
|
if (boss) { // no fruits on boss levels
|
||||||
s2->willbecome = -1;
|
s2->willbecome = -1;
|
||||||
} else {
|
} else {
|
||||||
// if player isn't fast, give a speed.
|
int forcespeed = B_FALSE;
|
||||||
if (!haspowerupany(P_SPEED)) {
|
if (player && !player->dead && !haspowerup(player, P_SPEED)) forcespeed = B_TRUE;
|
||||||
|
if (player2 && !player2->dead && !haspowerup(player2, P_SPEED)) forcespeed = B_TRUE;
|
||||||
|
// if anyone is alive and not fast isn't fast, give a speed.
|
||||||
|
if (forcespeed) {
|
||||||
s2->willbecome = P_SPEED;
|
s2->willbecome = P_SPEED;
|
||||||
} else if (!gotcard & (gotsomething >= 4)) { // card for killing 5 at once
|
} else if (!gotcard & (gotsomething >= 4)) { // card for killing 5 at once
|
||||||
s2->willbecome = getrandomcard();
|
s2->willbecome = getrandomcard();
|
||||||
|
|
Loading…
Reference in New Issue