]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
centerprint is no longer limited to 40 characters wide, it can now use up to the...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 3 Nov 2004 07:20:55 +0000 (07:20 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 3 Nov 2004 07:20:55 +0000 (07:20 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4730 d7cf8633-e32d-0410-b094-e92efae38249

cl_screen.c

index f6d2eee210fa6bd65d4f903a369dea8913c05b83..ab82f4bc1226ed4d9aadf48d245bb25fcbe34f6a 100644 (file)
@@ -109,7 +109,7 @@ void SCR_DrawCenterString (void)
        do
        {
        // scan the width of the line
-               for (l=0 ; l<40 ; l++)
+               for (l=0 ; l<vid.conwidth/8 ; l++)
                        if (start[l] == '\n' || !start[l])
                                break;
                x = (vid.conwidth - l*8)/2;