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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Aug 29 13:35:10 EDT 2009


Author: fruitiex
Date: 2009-08-29 13:35:10 -0400 (Sat, 29 Aug 2009)
New Revision: 7553

Modified:
   trunk/data/qcsrc/client/View.qc
Log:
hide cl_showpressedkeys and cl_showspeed if r_letterbox == 1


Modified: trunk/data/qcsrc/client/View.qc
===================================================================
--- trunk/data/qcsrc/client/View.qc	2009-08-29 13:01:07 UTC (rev 7552)
+++ trunk/data/qcsrc/client/View.qc	2009-08-29 17:35:10 UTC (rev 7553)
@@ -534,18 +534,18 @@
 	)
 		teamradar_view();
 
-	if (cvar("cl_showpressedkeys")) // draw pressed keys when spectating and playing
-	{
-		if(spectatee_status > 0 || cvar("cl_showpressedkeys") >= 2)
-			Sbar_DrawPressedKeys();
-	}
-	
-	if (cvar("cl_showspeed"))
-		Sbar_ShowSpeed();
-	
 	// draw sbar
- 	if(cvar("r_letterbox") == 0)
+ 	if(cvar("r_letterbox") == 0) {
+		if (cvar("cl_showpressedkeys")) { // draw pressed keys when spectating and playing
+			if(spectatee_status > 0 || cvar("cl_showpressedkeys") >= 2)
+				Sbar_DrawPressedKeys();
+		}
+		
+		if (cvar("cl_showspeed"))
+			Sbar_ShowSpeed();
+		
  		Sbar_DrawCenterPrint(); // draw centerprint messages even if viewsize >= 120
+	}
 
     float hud;
     hud = getstati(STAT_HUD);



More information about the nexuiz-commits mailing list