From: black Date: Fri, 17 Dec 2004 14:03:20 +0000 (+0000) Subject: -Fixed a bug in the centering code. X-Git-Tag: xonotic-v0.1.0preview~5292 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2da1bfa16fec4bf1cf242d832fd5601c26eea057;p=xonotic%2Fdarkplaces.git -Fixed a bug in the centering code. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4847 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/console.c b/console.c index 8bac0735..92f399a1 100644 --- 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;