From 07678311d1d84ee942bb69ab57eb430ec2523848 Mon Sep 17 00:00:00 2001 From: SSNTails Date: Thu, 15 Feb 2024 08:39:23 -0500 Subject: [PATCH] Missiles fired by player will not hit bots --- src/p_map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_map.c b/src/p_map.c index 7887c117d..dba8cc5cf 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -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)