diff options
Diffstat (limited to 'src/fpsgame/ai.cpp')
| -rw-r--r-- | src/fpsgame/ai.cpp | 15 |
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 |
