]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/bot/havocbot/havocbot.qc
Fix bug with bots not selecting the Grabber gun. This was caused by an improper weapo...
[voretournament/voretournament.git] / 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)
-               for(i=WEP_GRABBER + 1; i < WEP_COUNT ; ++i)
+               for(i = WEP_FIRST; i <= WEP_COUNT ; ++i)
                {
                        if(client_hasweapon(self, i, TRUE, FALSE))
                        {