From 527254584d6859b68b09dff72849c1eca783093d Mon Sep 17 00:00:00 2001
From: toaster <rollerorbital@gmail.com>
Date: Thu, 24 Oct 2019 19:16:53 +0100
Subject: [PATCH] Disable tailsbot in NiGHTS maps, not just Special Stages.
 (Resolves #261)

---
 src/d_netcmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/d_netcmd.c b/src/d_netcmd.c
index 1e69d371ea..385e2295d9 100644
--- a/src/d_netcmd.c
+++ b/src/d_netcmd.c
@@ -1692,7 +1692,7 @@ void D_MapChange(INT32 mapnum, INT32 newgametype, boolean pultmode, boolean rese
 		// Kick bot from special stages
 		if (botskin)
 		{
-			if (G_IsSpecialStage(mapnum))
+			if (G_IsSpecialStage(mapnum) || (mapheaderinfo[mapnum-1] && (mapheaderinfo[mapnum-1]->typeoflevel & TOL_NIGHTS)))
 			{
 				if (botingame)
 				{
-- 
GitLab