From bf9be6d0c3f2ad012ba5efb6c8753da55a083f61 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 17 May 2004 19:18:31 +0000 Subject: [PATCH] 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 --- console.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2