Missiles fired by player will not hit bots

This commit is contained in:
SSNTails 2024-02-15 08:39:23 -05:00
parent fa690e0190
commit 07678311d1

View file

@ -1278,8 +1278,8 @@ static unsigned PIT_DoCheckThing(mobj_t *thing)
if (tmthing->type != MT_SHELL && tmthing->target && tmthing->target->type == thing->type)
{
// Don't hit same species as originator.
if (thing == tmthing->target)
// Don't hit yourself, and if a player, don't hit bots
if (thing == tmthing->target || (thing->player && thing->player->bot))
return CHECKTHING_IGNORE;
if (thing->type != MT_PLAYER)