projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8404646
)
Clean up a bot weapon check
author
Mario <zacjardine@y7mail.com>
Sat, 13 Dec 2014 08:33:54 +0000
(19:33 +1100)
committer
Mario <zacjardine@y7mail.com>
Sat, 13 Dec 2014 08:33:54 +0000
(19:33 +1100)
qcsrc/server/bot/havocbot/havocbot.qc
patch
|
blob
|
history
diff --git
a/qcsrc/server/bot/havocbot/havocbot.qc
b/qcsrc/server/bot/havocbot/havocbot.qc
index
2ce9706
..
e58e670
100644
(file)
--- 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))
{