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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri May 22 18:22:25 EDT 2009


Author: mand1nga
Date: 2009-05-22 18:22:24 -0400 (Fri, 22 May 2009)
New Revision: 6754

Modified:
   trunk/data/qcsrc/server/bots.qc
   trunk/data/qcsrc/server/bots_scripting.qc
Log:
Fix compiler warnings

Modified: trunk/data/qcsrc/server/bots.qc
===================================================================
--- trunk/data/qcsrc/server/bots.qc	2009-05-22 19:27:13 UTC (rev 6753)
+++ trunk/data/qcsrc/server/bots.qc	2009-05-22 22:22:24 UTC (rev 6754)
@@ -1653,8 +1653,6 @@
 
 void navigation_add_bestgoal(entity goal)
 {
-	local float i;
-
 	if(bestgoalsrindex>0)
 	{
 		++bestgoalsrindex;
@@ -1677,7 +1675,6 @@
 
 entity navigation_get_bestgoal()
 {
-	local float i;
 	local entity ent;
 
 	ent = navigation_bestgoals[bestgoalsrindex];

Modified: trunk/data/qcsrc/server/bots_scripting.qc
===================================================================
--- trunk/data/qcsrc/server/bots_scripting.qc	2009-05-22 19:27:13 UTC (rev 6753)
+++ trunk/data/qcsrc/server/bots_scripting.qc	2009-05-22 22:22:24 UTC (rev 6754)
@@ -199,7 +199,7 @@
 void bot_queuecommand(entity bot, string cmdstring, string parm)
 {
 	entity cmd;
-	local float queue_index, cmd_parm_type, i;
+	local float cmd_parm_type, i;
 
 	if not(bot.isbot)
 		return;
@@ -245,7 +245,7 @@
 
 void bot_cmdhelp(string scmd)
 {
-	local float i, index, ntype;
+	local float i, ntype;
 	local string stype;
 
 	if(!bot_cmds_initialized)
@@ -851,8 +851,7 @@
 // NOTE: Of course you need to include your commands here too :)
 float bot_execute_commands()
 {
-	local float status, index, ispressingkey;
-	local entity cmd;
+	local float status, ispressingkey;
 
 	// Find command
 	bot_setcurrentcommand();



More information about the nexuiz-commits mailing list