r4314 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Sep 3 10:51:50 EDT 2008


Author: div0
Date: 2008-09-03 10:51:50 -0400 (Wed, 03 Sep 2008)
New Revision: 4314

Modified:
   trunk/data/qcsrc/server/cl_weapons.qc
Log:
fix "fixing" the weapon order; add missing weapons to the END in reverse order


Modified: trunk/data/qcsrc/server/cl_weapons.qc
===================================================================
--- trunk/data/qcsrc/server/cl_weapons.qc	2008-09-03 14:44:10 UTC (rev 4313)
+++ trunk/data/qcsrc/server/cl_weapons.qc	2008-09-03 14:51:50 UTC (rev 4314)
@@ -108,13 +108,13 @@
 	if(complete)
 	{
 		n = tokenize(neworder);
-		for(w = WEP_FIRST; w <= WEP_LAST; ++w)
+		for(w = WEP_LAST; w >= WEP_FIRST; --w)
 		{
 			for(i = 0; i < n; ++i)
 				if(stof(argv(i)) == w)
 					break;
 			if(i == n) // not found
-				neworder = strcat(ftos(w), " ", neworder);
+				neworder = strcat(neworder, ftos(w), " ");
 		}
 	}
 	




More information about the nexuiz-commits mailing list