From: MirceaKitsune Date: Wed, 4 May 2011 12:53:56 +0000 (+0300) Subject: Fix bug with bots not selecting the Grabber gun. This was caused by an improper weapo... X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=a51d7f40287635fb2b60444fc4576d8c82475984 Fix bug with bots not selecting the Grabber gun. This was caused by an improper weapon count check. Bots can now hold the Grabber for the first time in VT, though they don't know how to use it yet :) --- diff --git a/data/qcsrc/server/bot/havocbot/havocbot.qc b/data/qcsrc/server/bot/havocbot/havocbot.qc index 1e29e531..95c4e95d 100644 --- a/data/qcsrc/server/bot/havocbot/havocbot.qc +++ b/data/qcsrc/server/bot/havocbot/havocbot.qc @@ -947,7 +947,7 @@ void havocbot_chooseweapon() { // If no weapon was chosen get the first available weapon if(self.weapon==0) - for(i=WEP_GRABBER + 1; i < WEP_COUNT ; ++i) + for(i = WEP_FIRST; i <= WEP_COUNT ; ++i) { if(client_hasweapon(self, i, TRUE, FALSE)) {