Bullets now die when they hit you
This commit is contained in:
parent
4cfa5366db
commit
39556cf003
4
rc.c
4
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) ) {
|
} else if ((s->id == P_SMASH) || (s->id == P_STAR) || (s->id == P_METEOR) ) {
|
||||||
|
|
Loading…
Reference in New Issue