From 01588ea967c9a0bbcd666513ecf37dce655b39f0 Mon Sep 17 00:00:00 2001
From: Monster Iestyn <iestynjealous@ntlworld.com>
Date: Mon, 24 Dec 2018 17:59:12 +0000
Subject: [PATCH] Fix bot players using the respawning code meant only for real
 players to use

---
 src/p_user.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/p_user.c b/src/p_user.c
index a27e571ed..e4cb01f63 100644
--- a/src/p_user.c
+++ b/src/p_user.c
@@ -7630,6 +7630,9 @@ static void P_DeathThink(player_t *player)
 	if (player->deadtimer < INT32_MAX)
 		player->deadtimer++;
 
+	if (player->bot) // don't allow bots to do any of the below, B_CheckRespawn does all they need for respawning already
+		goto notrealplayer;
+
 	// continue logic
 	if (!(netgame || multiplayer) && player->lives <= 0)
 	{
@@ -7749,6 +7752,8 @@ static void P_DeathThink(player_t *player)
 		}
 	}
 
+notrealplayer:
+
 	if (!player->mo)
 		return;