From cb2974d8b409796bdffae781eb7103d432651bec Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Mon, 27 Oct 2025 21:27:09 +0000 Subject: [PATCH] Fix incorrect 'say:' prompt offset --- code/client/cl_console.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/code/client/cl_console.c b/code/client/cl_console.c index 42ed3904..35bd7cac 100644 --- a/code/client/cl_console.c +++ b/code/client/cl_console.c @@ -586,6 +586,8 @@ void Con_DrawNotify (void) v = 0; for (i= con.current-NUM_CON_TIMES+1 ; i<=con.current ; i++) { + int linelength = 0; + if (i < 0) continue; time = con.times[i % NUM_CON_TIMES]; @@ -609,11 +611,18 @@ void Con_DrawNotify (void) re.SetColor( g_color_table[currentColor] ); } SCR_DrawSmallChar( cl_conXOffset->integer + con.xadjust + (x+1)*g_smallchar_width, v, text[x] & 0xff ); + linelength++; } - v += g_smallchar_height; + if (linelength > 0) { + v += g_smallchar_height; + } } + // v is in native coordinates, convert to 640x480 for SCR_DrawBigString + v *= 480.0f / cls.glconfig.vidHeight; + v += 8; + re.SetColor( NULL ); if (Key_GetCatcher( ) & (KEYCATCH_UI | KEYCATCH_CGAME) ) {