From cf7a51459692f7f65f7d290cd1f7cc2a1112cb42 Mon Sep 17 00:00:00 2001 From: nhmall Date: Tue, 7 Apr 2026 13:59:43 -0400 Subject: [PATCH] consoletty.c bit restrict a debugging line --- sys/windows/consoletty.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/windows/consoletty.c b/sys/windows/consoletty.c index bceb98132..7831d89e0 100644 --- a/sys/windows/consoletty.c +++ b/sys/windows/consoletty.c @@ -2569,7 +2569,10 @@ void nethack_enter_consoletty(void) /* srWindow identifies the visible area; dwSize identifies the buffer */ width = csbi.srWindow.Right - csbi.srWindow.Left + 1; - fprintf(stdout, "width = %d\n", width); +#ifdef DEBUG + if (NH_DEVEL_STATUS != NH_STATUS_RELEASED) + fprintf(stdout, "width = %d\n", width); +#endif } console.hConOut = GetStdHandle(STD_OUTPUT_HANDLE);