From 369c2f884cacd69386e56ff0ab688178fc0e46c7 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 13 Dec 2014 19:33:54 +1100 Subject: [PATCH] Clean up a bot weapon check --- 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 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)) { -- 2.39.2