From 937127e987ac4e0e16101c44d184ac86b11d05cb Mon Sep 17 00:00:00 2001
From: MascaraSnake <jonassauer27@gmail.com>
Date: Tue, 27 Dec 2022 16:49:52 +0100
Subject: [PATCH] Disable exit sectors in non-NiGHTS special stages because
 they interfere with the pits

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

diff --git a/src/p_spec.c b/src/p_spec.c
index 5c9caa82fa..fd114ced01 100644
--- a/src/p_spec.c
+++ b/src/p_spec.c
@@ -4579,6 +4579,9 @@ static void P_ProcessExitSector(player_t *player, mtag_t sectag)
 	if (player->bot)
 		return;
 
+	if (G_IsSpecialStage(gamemap) && !(maptol & TOL_NIGHTS))
+		return;
+
 	// Exit (for FOF exits; others are handled in P_PlayerThink in p_user.c)
 	P_DoPlayerFinish(player);
 
-- 
GitLab