From d3f5591bba119a47ed520b82641cad72b538715e Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Sat, 18 Oct 2008 20:29:51 +0000 Subject: [PATCH] bugfix: iced snails now die instantly if you touch them rather than turning into slugs (and killing you) --- rc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rc.c b/rc.c index afaedda..5864b62 100644 --- a/rc.c +++ b/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); }