From: havoc Date: Mon, 17 May 2004 19:18:31 +0000 (+0000) Subject: Tomaz's con_backscroll patch, backscroll is no longer reset by new prints, and remain... X-Git-Tag: xonotic-v0.1.0preview~5870 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=bf9be6d0c3f2ad012ba5efb6c8753da55a083f61;p=xonotic%2Fdarkplaces.git Tomaz's con_backscroll patch, backscroll is no longer reset by new prints, and remains locked on the same position in the history git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4180 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/console.c b/console.c index 4cce82f9..abe11ddf 100644 --- a/console.c +++ b/console.c @@ -447,6 +447,9 @@ Con_Linefeed */ void Con_Linefeed (void) { + if (con_backscroll) + con_backscroll++; + con_x = 0; con_current++; memset (&con_text[(con_current%con_totallines)*con_linewidth], ' ', con_linewidth); @@ -466,8 +469,6 @@ void Con_PrintToHistory(const char *txt) int y, c, l, mask; static int cr; - con_backscroll = 0; - if (txt[0] == 1) { mask = 128; // go to colored text