From b65c13bac200d47da1948d76f782a509bf9e0a7b Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Sat, 12 Feb 2011 02:37:17 +0200 Subject: [PATCH] "we're already holding a weapon we can reload" when we also have some ammo to reload it. --- qcsrc/server/bot/havocbot/havocbot.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/bot/havocbot/havocbot.qc b/qcsrc/server/bot/havocbot/havocbot.qc index c06bf9c2d..788088e70 100644 --- a/qcsrc/server/bot/havocbot/havocbot.qc +++ b/qcsrc/server/bot/havocbot/havocbot.qc @@ -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) { -- 2.39.2