bugfix: iced snails now die instantly if you touch them rather than turning

into slugs (and killing you)
This commit is contained in:
Rob Pearce 2008-10-18 20:29:51 +00:00
parent fcb074cc68
commit d3f5591bba
1 changed files with 4 additions and 0 deletions

4
rc.c
View File

@ -1292,6 +1292,7 @@ void checkcollide(sprite_t *s) {
keepchecking = B_FALSE;
} else if (s2->iced) {
// it dies
s2->willbecome = P_DIAMOND;
playfx(FX_ICEBREAK);
if (s2->id == P_SNAIL) s2->id = P_SLUG;
die(s2);
@ -1336,6 +1337,8 @@ void checkcollide(sprite_t *s) {
if (s2->iced) {
// monster dies
playfx(FX_ICEBREAK);
if (s2->id == P_SNAIL) s2->id = P_SLUG;
s2->willbecome = P_DIAMOND;
die(s2);
} else if (!s->invuln) {
// player dies
@ -4160,6 +4163,7 @@ void dogravity(sprite_t *s) {
if (s->falling && s->iced) {
// when an iced monster hits the ground, it smashes
s->willbecome = P_DIAMOND;
if (s->id == P_SNAIL) s->id = P_SLUG;
playfx(FX_ICEBREAK);
die(s);
}