[nexuiz-commits] r7027 - trunk/data/qcsrc/menu/nexuiz

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Jun 13 13:46:27 EDT 2009


Author: div0
Date: 2009-06-13 13:46:27 -0400 (Sat, 13 Jun 2009)
New Revision: 7027

Modified:
   trunk/data/qcsrc/menu/nexuiz/slider.c
   trunk/data/qcsrc/menu/nexuiz/util.qh
Log:
fix a warning


Modified: trunk/data/qcsrc/menu/nexuiz/slider.c
===================================================================
--- trunk/data/qcsrc/menu/nexuiz/slider.c	2009-06-13 17:34:30 UTC (rev 7026)
+++ trunk/data/qcsrc/menu/nexuiz/slider.c	2009-06-13 17:46:27 UTC (rev 7027)
@@ -41,7 +41,7 @@
 		vp *= 10;
 	me.configureSliderVisuals(me, me.fontSize, me.align, me.valueSpace, me.image);
 	me.configureSliderValues(me, theValueMin, v, theValueMax, theValueStep, vk, vp);
-	if(theCvar)
+	if(theCvar && tooltipdb >= 0)
 	{
 		me.cvarName = theCvar;
 		me.tooltip = getZonedTooltipForIdentifier(theCvar);

Modified: trunk/data/qcsrc/menu/nexuiz/util.qh
===================================================================
--- trunk/data/qcsrc/menu/nexuiz/util.qh	2009-06-13 17:34:30 UTC (rev 7026)
+++ trunk/data/qcsrc/menu/nexuiz/util.qh	2009-06-13 17:46:27 UTC (rev 7027)
@@ -10,6 +10,7 @@
 void setDependentAND3(entity e, string theCvarName, float theCvarMin, float theCvarMax, string theCvar2Name, float theCvar2Min, float theCvar2Max, string theCvar3Name, float theCvar3Min, float theCvar3Max);
 void setDependentStringNotEqual(entity e, string theCvarName, string theCvarValue);
 
+float tooltipdb;
 void loadTooltips();
 void unloadTooltips();
 string getZonedTooltipForIdentifier(string s);



More information about the nexuiz-commits mailing list