From: havoc Date: Wed, 23 Nov 2005 03:40:59 +0000 (+0000) Subject: added a remaining < 1 check to centerprint display code, this might have fixed the... X-Git-Tag: xonotic-v0.1.0preview~4463 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4d7f4863c87e02a4101587d6e3efce96697cf9b9;p=xonotic%2Fdarkplaces.git added a remaining < 1 check to centerprint display code, this might have fixed the problem where it briefly showed the full text at the beginning of a finale git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5821 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_screen.c b/cl_screen.c index fa9bff8e..e89346a0 100644 --- a/cl_screen.c +++ b/cl_screen.c @@ -211,6 +211,9 @@ void SCR_DrawCenterString (void) scr_erase_center = 0; start = scr_centerstring; + if (remaining < 1) + return; + if (scr_center_lines <= 4) y = vid_conheight.integer*0.35; else