- 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
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;
}
}

View File

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