From: divverent Date: Mon, 17 Jan 2011 15:28:26 +0000 (+0000) Subject: fix console margin calculation X-Git-Tag: xonotic-v0.5.0~438^2~136 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=47dd58dd4e8e1e1f20e5a9511ccb77aabac03608;p=xonotic%2Fdarkplaces.git fix console margin calculation git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10705 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_screen.c b/cl_screen.c index defedb90..5404591e 100644 --- a/cl_screen.c +++ b/cl_screen.c @@ -611,16 +611,16 @@ static int SCR_InfobarHeight(void) scr_infobartime_off -= cl.time - cl.oldtime; if(scr_infobartime_off > 0) offset += 8; - if(cls.qw_downloadname[0]) offset += 8; downinfo = Curl_GetDownloadInfo(&nDownloads, &addinfo); if(downinfo) { - offset += 8 * (nDownloads + (addinfo ? 1 : 0)); + offset += (nDownloads + (addinfo ? 1 : 0)); Z_Free(downinfo); } + offset *= scr_infobar_height.value; return offset; }