[nexuiz-commits] r7927 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Sep 26 11:24:12 EDT 2009


Author: div0
Date: 2009-09-26 11:24:11 -0400 (Sat, 26 Sep 2009)
New Revision: 7927

Modified:
   trunk/data/qcsrc/server/cl_player.qc
Log:
fix an obvious typo...


Modified: trunk/data/qcsrc/server/cl_player.qc
===================================================================
--- trunk/data/qcsrc/server/cl_player.qc	2009-09-26 14:41:09 UTC (rev 7926)
+++ trunk/data/qcsrc/server/cl_player.qc	2009-09-26 15:24:11 UTC (rev 7927)
@@ -74,7 +74,7 @@
 	if(awep > WEP_LAST || vwep > WEP_LAST)
 		return;
 	idx = WEAPONSTATS_GETINDEX(awep,vwep);
-	bufstr_set(weaponstats_buffer, 2*idx, vtos(stov(bufstr_get(weaponstats_buffer, 2*idx)) + item));
+	bufstr_set(weaponstats_buffer, idx, vtos(stov(bufstr_get(weaponstats_buffer, idx)) + item));
 }
 void WeaponStats_LogDamage(float awep, float vwep, float damage)
 {



More information about the nexuiz-commits mailing list