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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Apr 22 11:47:26 EDT 2009


Author: div0
Date: 2009-04-22 11:47:26 -0400 (Wed, 22 Apr 2009)
New Revision: 6562

Modified:
   trunk/data/qcsrc/server/vote.qc
Log:
remove warnings


Modified: trunk/data/qcsrc/server/vote.qc
===================================================================
--- trunk/data/qcsrc/server/vote.qc	2009-04-22 15:46:50 UTC (rev 6561)
+++ trunk/data/qcsrc/server/vote.qc	2009-04-22 15:47:26 UTC (rev 6562)
@@ -418,21 +418,19 @@
 	string l;
 	l = strcat(" ", list, " ");
 	
-	if(strstrofs(l, strcat(" ", votecommand, " ")) >= 0)
+	if(strstrofs(l, strcat(" ", votecommand, " "), 0) >= 0)
 		return TRUE;
 	
 	// if gotomap is allowed, chmap is too, and vice versa
 	if(votecommand == "gotomap")
-		if(strstrofs(l, " chmap ") >= 0)
+		if(strstrofs(l, " chmap ", 0) >= 0)
 			return TRUE;
 	if(votecommand == "chmap")
-		if(strstrofs(l, " gotomap ") >= 0)
+		if(strstrofs(l, " gotomap ", 0) >= 0)
 			return TRUE;
 }
 
 float VoteAllowed(string votecommand, string cmd) {
-	local float index;
-
 	if(VoteCommandInList(votecommand, cvar_string("sv_vote_commands")))
 		return TRUE;
 



More information about the nexuiz-commits mailing list