]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Tomaz's con_backscroll patch, backscroll is no longer reset by new prints, and remain...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 17 May 2004 19:18:31 +0000 (19:18 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 17 May 2004 19:18:31 +0000 (19:18 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4180 d7cf8633-e32d-0410-b094-e92efae38249

console.c

index 4cce82f93ff37ca399f66f85c227a0048e03419e..abe11ddf5551ed6ab559f669f7159c7037e74b92 100644 (file)
--- 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