]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
-Fixed a bug in the centering code.
authorblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 17 Dec 2004 14:03:20 +0000 (14:03 +0000)
committerblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 17 Dec 2004 14:03:20 +0000 (14:03 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4847 d7cf8633-e32d-0410-b094-e92efae38249

console.c

index 8bac0735464d854d605e2fc3853b912d0e4ed154..92f399a14c96699de538af7f6e6e7ac1a489884e 100644 (file)
--- a/console.c
+++ b/console.c
@@ -800,8 +800,8 @@ void Con_DrawNotify (void)
                if (gamemode == GAME_NEXUIZ) {
                        int linewidth;
 
-                       for (linewidth = con_linewidth; text[--linewidth] == ' ' && linewidth; linewidth--);
-                       x = (vid.conwidth - ++linewidth * 8) / 2;
+                       for (linewidth = con_linewidth; linewidth && text[linewidth-1] == ' '; linewidth--);
+                       x = (vid.conwidth - linewidth * 8) / 2;
                } else 
                        x = 0;