From c46daa31f8e0339aed12736699d0003d27f1fc7e Mon Sep 17 00:00:00 2001 From: xolatile Date: Sun, 20 Jul 2025 12:18:48 +0200 Subject: Most warnings fixed, ignoring one warning for now... --- src/fpsgame/ai.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/fpsgame/ai.cpp') 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 -- cgit v1.2.3