- Clock powerup now freezes corpses too

This commit is contained in:
Rob Pearce 2008-12-28 02:22:32 +00:00
parent a7505df520
commit db653cc476
2 changed files with 6 additions and 2 deletions

2
rc.c
View File

@ -2411,7 +2411,7 @@ int movesprite(sprite_t *s) {
// only player can move if you have a clock // only player can move if you have a clock
if (globpowerup == PW_CLOCK) { if (globpowerup == PW_CLOCK) {
if (!iseffect(s->id) && (!isplayer(s)) && !s->caughtby && !s->dead) { if (!iseffect(s->id) && (!isplayer(s)) && !s->caughtby) {
return B_FALSE; return B_FALSE;
} }
} }

View File

@ -2040,9 +2040,13 @@ void drawsprite(sprite_t *s) {
frame = F_DEAD; frame = F_DEAD;
} else if (s->id == P_SNAIL) { } else if (s->id == P_SNAIL) {
frame = F_DEAD; frame = F_DEAD;
} else {
if (globpowerup == PW_CLOCK) {
frame = F_DEAD + 2;
} else { } else {
frame = F_DEAD + ((timer/2) % 4); frame = F_DEAD + ((timer/2) % 4);
} }
}
} else if (s->id == P_KINGSNAIL) { } else if (s->id == P_KINGSNAIL) {
// frame based on state // frame based on state
switch (s->timer1) { switch (s->timer1) {