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/game.h | 44 +++++++++++++++++++++++++++++++------------- 1 file changed, 31 insertions(+), 13 deletions(-) (limited to 'src/fpsgame/game.h') diff --git a/src/fpsgame/game.h b/src/fpsgame/game.h index 185fd60..df0eeb5 100644 --- a/src/fpsgame/game.h +++ b/src/fpsgame/game.h @@ -246,8 +246,8 @@ static struct itemstat { {100, 200, S_ITEMHEALTH, "MH", HICON_HEALTH, 50}, {5, 100, S_ITEMHEALTH, "TH", HICON_HEALTH, -1}, {5, 50, S_ITEMARMOUR, "TA", HICON_BLUE_ARMOUR, A_BLUE}, - {100, 100, S_ITEMARMOUR, "GA", HICON_GREEN_ARMOUR, A_GREEN}, - {200, 200, S_ITEMARMOUR, "YA", HICON_YELLOW_ARMOUR, A_YELLOW}, + {50, 100, S_ITEMARMOUR, "GA", HICON_GREEN_ARMOUR, A_GREEN}, + {100, 200, S_ITEMARMOUR, "YA", HICON_YELLOW_ARMOUR, A_YELLOW}, {20000, 30000, S_ITEMPUP, "Q", HICON_QUAD, -1}, }; @@ -277,13 +277,13 @@ static const struct guninfo { struct fpsstate { int health, maxhealth; - int armour, armourtype; + int armour, maxarmour, armourtype; int quadmillis; int gunselect, gunwait; int ammo[NUMGUNS]; int aitype, skill; - fpsstate() : maxhealth(100), aitype(AI_NONE), skill(0) {} + fpsstate() : maxhealth(100), maxarmour(50), aitype(AI_NONE), skill(0) {} void baseammo(int gun, int k = 2, int scale = 1) { @@ -311,12 +311,19 @@ struct fpsstate case I_BOOST: return maxhealth=50)return false; + case I_GREENARMOUR: - // (100h/100g only absorbs 200 damage) - if(armourtype==A_YELLOW && armour>=100)return false; - case I_YELLOWARMOUR: return !armourtype || armour=50)return false; + //~case I_GREENARMOUR: + //~// (100h/100g only absorbs 200 damage) + //~if(armourtype==A_YELLOW && armour>=100)return false; + //~case I_YELLOWARMOUR: return !armourtype || armour