Don't count dunking a landmine on yourself for the landmine dunk challenge

This commit is contained in:
toaster 2024-05-02 21:55:51 +01:00
parent 32c43044cb
commit 6c8242cd0a

View file

@ -433,7 +433,9 @@ boolean K_LandMineCollide(mobj_t *t1, mobj_t *t2)
// Banana snipe!
if (t1->health > 1)
{
if (t1->target && t1->target->player)
if (t1->target
&& t1->target->player
&& t2->player != t1->target->player)
{
t1->target->player->roundconditions.landmine_dunk = true;
t1->target->player->roundconditions.checkthisframe = true;