From d00c6a8ab9ec3b9ed890106cb1b10162d3a8bb14 Mon Sep 17 00:00:00 2001
From: Hanicef <gustaf@hanicef.me>
Date: Wed, 20 Mar 2024 22:49:12 +0100
Subject: [PATCH] Fix softlock on old special stages when running out of time
 due to being hit

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

diff --git a/src/p_inter.c b/src/p_inter.c
index 406f4af222..83b2e7c8b4 100644
--- a/src/p_inter.c
+++ b/src/p_inter.c
@@ -3640,7 +3640,7 @@ void P_SpecialStageDamage(player_t *player, mobj_t *inflictor, mobj_t *source)
 		if (player->nightstime > 5*TICRATE)
 			player->nightstime -= 5*TICRATE;
 		else
-			player->nightstime = 0;
+			player->nightstime = 1;
 	}
 
 	P_DoPlayerPain(player, inflictor, source);
-- 
GitLab