From 39556cf00340c200485bb60363c52ce60405442f Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Wed, 12 Nov 2008 06:58:43 +0000 Subject: [PATCH] Bullets now die when they hit you --- rc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rc.c b/rc.c index c495309..70b0444 100644 --- a/rc.c +++ b/rc.c @@ -1876,6 +1876,10 @@ void checkcollide(sprite_t *s) { } } } + // if a bullet hit us, it dies too + if (isbullet(s2->id)) { + s2->dead = D_FINAL; + } } } } else if ((s->id == P_SMASH) || (s->id == P_STAR) || (s->id == P_METEOR) ) {