r4445 - trunk/data/qcsrc/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Sep 10 13:09:40 EDT 2008


Author: div0
Date: 2008-09-10 13:09:40 -0400 (Wed, 10 Sep 2008)
New Revision: 4445

Modified:
   trunk/data/qcsrc/client/View.qc
Log:
use the right stat for zoom


Modified: trunk/data/qcsrc/client/View.qc
===================================================================
--- trunk/data/qcsrc/client/View.qc	2008-09-10 16:58:33 UTC (rev 4444)
+++ trunk/data/qcsrc/client/View.qc	2008-09-10 17:09:40 UTC (rev 4445)
@@ -125,7 +125,7 @@
 			zoomspeed = 3.5;
 
 	zoomdir = button_zoom;
-	if(activeweapon == WEP_NEX)
+	if(getstati(STAT_ACTIVEWEAPON) == WEP_NEX) // do NOT use switchweapon here
 		zoomdir += button_attack2;
 	if(spectatee_status > 0 || isdemo())
 	{




More information about the nexuiz-commits mailing list