[nexuiz-commits] r7216 - trunk/data/qcsrc/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Jul 13 06:24:22 EDT 2009


Author: div0
Date: 2009-07-13 06:24:21 -0400 (Mon, 13 Jul 2009)
New Revision: 7216

Modified:
   trunk/data/qcsrc/client/sbar.qc
Log:
if con_chat is disabled, still clip centerprint against the upper edge of the HUD


Modified: trunk/data/qcsrc/client/sbar.qc
===================================================================
--- trunk/data/qcsrc/client/sbar.qc	2009-07-13 05:49:00 UTC (rev 7215)
+++ trunk/data/qcsrc/client/sbar.qc	2009-07-13 10:24:21 UTC (rev 7216)
@@ -1732,6 +1732,8 @@
 	havail = vid_conheight;
 	if(cvar("con_chatpos") < 0)
 		havail -= (-cvar("con_chatpos") + cvar("con_chat")) * cvar("con_chatsize"); // avoid overlapping chat
+	if(havail > vid_conheight - 70)
+		havail = vid_conheight - 70; // avoid overlapping HUD
 
 	centerprint_start_x = 0;
 



More information about the nexuiz-commits mailing list