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) ) {