]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
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 1e29e5319f5a639c681066fc939cca37fd0e5c47..95c4e95dac28d0bdf125e0b4ee9bca7ad8b618db 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))
                        {