From 1040a93a6e6e21abca01f4dcd771ab1e5047c719 Mon Sep 17 00:00:00 2001
From: Steel Titanium <steeltitanium1@gmail.com>
Date: Wed, 28 Aug 2019 23:12:25 -0400
Subject: [PATCH] Ignore bots when looking for a player

---
 src/p_enemy.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/p_enemy.c b/src/p_enemy.c
index e3f169784..18d37a1a7 100644
--- a/src/p_enemy.c
+++ b/src/p_enemy.c
@@ -726,6 +726,9 @@ boolean P_LookForPlayers(mobj_t *actor, boolean allaround, boolean tracer, fixed
 		if (player->mo->health <= 0)
 			continue; // dead
 
+		if (player->bot)
+			continue; // ignore bots
+
 		if (dist > 0
 			&& P_AproxDistance(P_AproxDistance(player->mo->x - actor->x, player->mo->y - actor->y), player->mo->z - actor->z) > dist)
 			continue; // Too far away