[nexuiz-commits] r6785 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Thu May 28 22:32:22 EDT 2009
Author: mand1nga
Date: 2009-05-28 22:32:21 -0400 (Thu, 28 May 2009)
New Revision: 6785
Modified:
trunk/data/qcsrc/server/bots.qc
Log:
Minor fix
Modified: trunk/data/qcsrc/server/bots.qc
===================================================================
--- trunk/data/qcsrc/server/bots.qc 2009-05-29 01:06:47 UTC (rev 6784)
+++ trunk/data/qcsrc/server/bots.qc 2009-05-29 02:32:21 UTC (rev 6785)
@@ -2469,15 +2469,16 @@
self.isbot = TRUE;
self.createdtime = self.nextthink;
- switch(self.bot_team)
- {
- case 1: self.team = COLOR_TEAM1;
- case 2: self.team = COLOR_TEAM2;
- case 3: self.team = COLOR_TEAM3;
- case 4: self.team = COLOR_TEAM4;
- default:
- JoinBestTeam(self, FALSE, TRUE);
- }
+ if(self.bot_team==1)
+ self.team = COLOR_TEAM1;
+ else if(self.bot_team==2)
+ self.team = COLOR_TEAM2;
+ else if(self.bot_team==3)
+ self.team = COLOR_TEAM3;
+ else if(self.bot_team==4)
+ self.team = COLOR_TEAM4;
+ else
+ JoinBestTeam(self, FALSE, TRUE);
havocbot_setupbot();
self.bot_mouseskill=random()-0.5;
More information about the nexuiz-commits
mailing list