]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
"we're already holding a weapon we can reload" when we also have some ammo to reload it.
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 12 Feb 2011 00:37:17 +0000 (02:37 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 12 Feb 2011 00:37:17 +0000 (02:37 +0200)
qcsrc/server/bot/havocbot/havocbot.qc

index c06bf9c2df356e4e6ed490bf016cd4716990424d..788088e708e8acbe5a9b31d34052ae60d4248bac 100644 (file)
@@ -161,7 +161,7 @@ void havocbot_ai()
                // the code above executes next frame, starting the reloading then
                if(skill >= 5) // bots can only look for unloaded weapons past this skill
                if(self.clip_load >= 0) // only if we're not reloading a weapon already
-               if not(self.clip_load < self.clip_size) // we're already holding a weapon we can reload, don't look for another
+               if not(self.clip_load < self.clip_size && self.(self.current_ammo)) // we're already holding a weapon we can reload, don't look for another
                {
                        for(i = WEP_FIRST; i <= WEP_LAST; ++i)
                        {