summaryrefslogtreecommitdiff
path: root/src/fpsgame/ai.cpp
diff options
context:
space:
mode:
authorxolatile2025-07-20 12:18:48 +0200
committerxolatile2025-07-20 12:18:48 +0200
commitc46daa31f8e0339aed12736699d0003d27f1fc7e (patch)
tree11083f9c5eced31cf246c5feadc2c96d66e165cb /src/fpsgame/ai.cpp
parente9ad09c58820b31743251f793f30e5d4d49a0dca (diff)
downloadxolatile-badassbug-c46daa31f8e0339aed12736699d0003d27f1fc7e.tar.xz
xolatile-badassbug-c46daa31f8e0339aed12736699d0003d27f1fc7e.tar.zst
Most warnings fixed, ignoring one warning for now...
Diffstat (limited to 'src/fpsgame/ai.cpp')
-rw-r--r--src/fpsgame/ai.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/fpsgame/ai.cpp b/src/fpsgame/ai.cpp
index d5045fd..50f0549 100644
--- a/src/fpsgame/ai.cpp
+++ b/src/fpsgame/ai.cpp
@@ -603,8 +603,14 @@ namespace ai
bool wantsitem = false;
switch(entities::ents[ent]->type)
{
- case I_BOOST: case I_HEALTH: wantsitem = badhealth(d); break;
- case I_GREENARMOUR: case I_YELLOWARMOUR: case I_QUAD: break;
+ case I_BOOST:
+
+ case I_HEALTH: wantsitem = badhealth(d); break;
+ case I_GREENARMOUR:
+
+ case I_YELLOWARMOUR:
+
+ case I_QUAD: break;
default:
{
itemstat &is = itemstats[entities::ents[ent]->type-I_SHELLS];
@@ -871,8 +877,11 @@ namespace ai
switch(wpspot(d, d->ai->route[n], true))
{
case 2: d->ai->clear(false);
+
case 1: return true; // not close enough to pop it yet
- case 0: default: break;
+ case 0:
+
+ default: break;
}
}
else