]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix console margin calculation
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 17 Jan 2011 15:28:26 +0000 (15:28 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 17 Jan 2011 15:28:26 +0000 (15:28 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10705 d7cf8633-e32d-0410-b094-e92efae38249

cl_screen.c

index defedb90bd44d771a2b555ba5dd1971132d06835..5404591ecfbf37de2218abd6d00c6da555524861 100644 (file)
@@ -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;
 }