summaryrefslogtreecommitdiff
path: root/src/fpsgame/game.h
diff options
context:
space:
mode:
authorxolatile2025-07-21 06:06:50 +0200
committerxolatile2025-07-21 06:06:50 +0200
commit09a43565940be30b233fa8730e65d531a454a03b (patch)
treee7ee95b2964b68611701643376ed500bb7d2ddcd /src/fpsgame/game.h
parent39de2c68c8a3f9cd7cffef9364a59c9d412b907e (diff)
downloadxolatile-badassbug-09a43565940be30b233fa8730e65d531a454a03b.tar.xz
xolatile-badassbug-09a43565940be30b233fa8730e65d531a454a03b.tar.zst
Cleaned 95% of -Wall -Wextra...
Diffstat (limited to 'src/fpsgame/game.h')
-rw-r--r--src/fpsgame/game.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fpsgame/game.h b/src/fpsgame/game.h
index df0eeb5..3ab0447 100644
--- a/src/fpsgame/game.h
+++ b/src/fpsgame/game.h
@@ -313,9 +313,9 @@ struct fpsstate
case I_HEALTH: return health<maxhealth;
case I_TINYARMOUR:
-
+ [[fallthrough]];
case I_GREENARMOUR:
-
+ [[fallthrough]];
case I_YELLOWARMOUR: return maxarmour<is.max || armour<maxarmour;
//~case I_TINYARMOUR:
@@ -344,14 +344,14 @@ struct fpsstate
//~break;
case I_BOOST:
maxhealth = min(maxhealth+is.info, is.max);
-
+ [[fallthrough]];
case I_HEALTH: // boost also adds to health
health = min(health+is.add, maxhealth);
break;
case I_TINYARMOUR:
-
+ [[fallthrough]];
case I_GREENARMOUR:
-
+ [[fallthrough]];
case I_YELLOWARMOUR:
maxarmour = max(maxarmour, is.max);
armour = min(armour+is.add, maxarmour);