From c77237dfcdc74181f1353343604620913bb510cf Mon Sep 17 00:00:00 2001
From: Yukita Mayako <catgirl@goddess.moe>
Date: Fri, 11 Mar 2016 09:10:15 -0500
Subject: [PATCH] HACK remove cv_playersforexit so that only the local player
 counts for XD_EXITLEVEL

---
 src/p_user.c | 22 +---------------------
 1 file changed, 1 insertion(+), 21 deletions(-)

diff --git a/src/p_user.c b/src/p_user.c
index ae41aae9e0..a761258743 100644
--- a/src/p_user.c
+++ b/src/p_user.c
@@ -8745,27 +8745,7 @@ void P_PlayerThink(player_t *player)
 
 	if (player->exiting == 2 || countdown2 == 2)
 	{
-		if (cv_playersforexit.value) // Count to be sure everyone's exited
-		{
-			INT32 i;
-
-			for (i = 0; i < MAXPLAYERS; i++)
-			{
-				if (!playeringame[i] || players[i].spectator || players[i].bot)
-					continue;
-				if (players[i].lives <= 0)
-					continue;
-
-				if (!players[i].exiting || players[i].exiting > 3)
-					break;
-			}
-
-			if (i == MAXPLAYERS)
-				SendNetXCmd(XD_EXITLEVEL, NULL, 0);
-			else
-				player->exiting = 3;
-		}
-		else
+		if (player-players == consoleplayer)
 			SendNetXCmd(XD_EXITLEVEL, NULL, 0);
 	}
 
-- 
GitLab