bugfix: iced snails now die instantly if you touch them rather than turning
into slugs (and killing you)
This commit is contained in:
parent
fcb074cc68
commit
d3f5591bba
4
rc.c
4
rc.c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue