Fix bug with bots not selecting the Grabber gun. This was caused by an improper weapo...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 May 2011 12:53:56 +0000 (15:53 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 May 2011 12:53:56 +0000 (15:53 +0300)
data/qcsrc/server/bot/havocbot/havocbot.qc

index 1e29e53..95c4e95 100644 (file)
@@ -947,7 +947,7 @@ void havocbot_chooseweapon()
        {
                // If no weapon was chosen get the first available weapon
                if(self.weapon==0)
        {
                // 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))
                        {
                {
                        if(client_hasweapon(self, i, TRUE, FALSE))
                        {