]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix bug in console backscroll overflow handlign
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 21 May 2009 16:34:01 +0000 (16:34 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 21 May 2009 16:34:01 +0000 (16:34 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8983 d7cf8633-e32d-0410-b094-e92efae38249

console.c

index 8f23f324b152718dacb5263663eb88ba8fb7996c..fb66ac8ec624343b1cd65ea990ecd5a48d42fff9 100644 (file)
--- a/console.c
+++ b/console.c
@@ -160,7 +160,7 @@ void ConBuffer_DeleteLine(conbuffer_t *buf)
        if(buf->lines_count == 0)
                return;
        --buf->lines_count;
-       buf->lines_first = (buf->lines_first) % buf->maxlines;
+       buf->lines_first = (buf->lines_first + 1) % buf->maxlines;
 }
 
 /*