Bullets now die when they hit you

This commit is contained in:
Rob Pearce 2008-11-12 06:58:43 +00:00
parent 4cfa5366db
commit 39556cf003
1 changed files with 4 additions and 0 deletions

4
rc.c
View File

@ -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) ) {