From: Mario Date: Sat, 13 Dec 2014 08:33:54 +0000 (+1100) Subject: Clean up a bot weapon check X-Git-Tag: xonotic-v0.8.0~105 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=369c2f884cacd69386e56ff0ab688178fc0e46c7;p=xonotic%2Fxonotic-data.pk3dir.git Clean up a bot weapon check --- diff --git a/qcsrc/server/bot/havocbot/havocbot.qc b/qcsrc/server/bot/havocbot/havocbot.qc index 2ce9706a2..e58e67097 100644 --- a/qcsrc/server/bot/havocbot/havocbot.qc +++ b/qcsrc/server/bot/havocbot/havocbot.qc @@ -982,7 +982,7 @@ void havocbot_chooseweapon() { // If no weapon was chosen get the first available weapon if(self.weapon==0) - for(i=WEP_BLASTER + 1; i < WEP_COUNT ; ++i) // Samual: This seems strange compared to other weapon loops... + for(i = WEP_FIRST; i <= WEP_LAST; ++i) if(i != WEP_BLASTER) { if(client_hasweapon(self, i, TRUE, FALSE)) {