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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Jun 10 23:07:01 EDT 2009


Author: mand1nga
Date: 2009-06-10 23:07:00 -0400 (Wed, 10 Jun 2009)
New Revision: 6973

Modified:
   trunk/data/qcsrc/server/havocbot.qc
Log:
Choose same weapons for non-player enemies

Modified: trunk/data/qcsrc/server/havocbot.qc
===================================================================
--- trunk/data/qcsrc/server/havocbot.qc	2009-06-11 02:51:50 UTC (rev 6972)
+++ trunk/data/qcsrc/server/havocbot.qc	2009-06-11 03:07:00 UTC (rev 6973)
@@ -751,7 +751,7 @@
 	}
 
 	// TODO: clean this up by moving it to weapon code
-	if(self.enemy.classname!="player")
+	if(self.enemy==world)
 	{
 		// If no weapon was chosen get the first available weapon
 		if(self.weapon==0)



More information about the nexuiz-commits mailing list