From e7fc251663413db5d53f9656e57c6810b7dab2fb Mon Sep 17 00:00:00 2001 From: myT Date: Wed, 17 May 2017 07:13:28 +0200 Subject: [PATCH] no longer able to scroll past the topmost line after a console clear --- code/client/cl_console.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/client/cl_console.cpp b/code/client/cl_console.cpp index b138271..a608ffd 100644 --- a/code/client/cl_console.cpp +++ b/code/client/cl_console.cpp @@ -153,6 +153,8 @@ static void Con_Clear_f( void ) con.text[i] = (COLOR_WHITE << 8) | ' '; } + con.current = con.totallines - 1; + Con_Bottom(); } @@ -233,7 +235,7 @@ static void Con_Init() con.linewidth = CONSOLE_WIDTH; con.totallines = CON_TEXTSIZE / con.linewidth; - con.current = con.totallines - 1; + Con_Clear_f(); con.cw = CONCHAR_WIDTH;