From: Mircea Kitsune Date: Sat, 12 Feb 2011 00:55:08 +0000 (+0200) Subject: Actually, that check is not needed at all. If we're holding a weapon we can reload... X-Git-Tag: xonotic-v0.5.0~309^2~7^2~18 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dc5c35c50b41e50282ee9c7167369c1a78238300;p=xonotic%2Fxonotic-data.pk3dir.git Actually, that check is not needed at all. If we're holding a weapon we can reload, it means we're already reloading it, which means it's already being checked :) --- diff --git a/qcsrc/server/bot/havocbot/havocbot.qc b/qcsrc/server/bot/havocbot/havocbot.qc index 788088e70..34db488b1 100644 --- a/qcsrc/server/bot/havocbot/havocbot.qc +++ b/qcsrc/server/bot/havocbot/havocbot.qc @@ -161,7 +161,6 @@ 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 && 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) {