From d73ed99703e6916c306aae674b6bf26cc6727d13 Mon Sep 17 00:00:00 2001
From: sdasdas <sdaswas@missing.bike>
Date: Tue, 31 Oct 2023 22:06:22 +0300
Subject: [PATCH] check for hud_nightsrecords in old special stages

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

diff --git a/src/st_stuff.c b/src/st_stuff.c
index a975379785..ba1dc6cca4 100644
--- a/src/st_stuff.c
+++ b/src/st_stuff.c
@@ -2107,7 +2107,7 @@ static void ST_drawNiGHTSHUD(void)
 			V_DrawString(160 + numbersize + 8, 24, V_SNAPTOTOP|((realnightstime < 10) ? V_REDMAP : V_YELLOWMAP), va("%02d", G_TicsToCentiseconds(stplyr->nightstime)));
 	}
 
-	if (oldspecialstage)
+	if (oldspecialstage && LUA_HudEnabled(hud_nightsrecords))
 	{
 		if (leveltime < 5*TICRATE)
 		{
-- 
GitLab