mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-24 02:01:17 +00:00
Display HUD Icon for Fire Flower
This commit is contained in:
parent
9e72b78a24
commit
84f7b0cf1d
1 changed files with 20 additions and 1 deletions
|
@ -134,6 +134,7 @@ static patch_t *minicaps;
|
||||||
static patch_t *gotrflag;
|
static patch_t *gotrflag;
|
||||||
static patch_t *gotbflag;
|
static patch_t *gotbflag;
|
||||||
static patch_t *fnshico;
|
static patch_t *fnshico;
|
||||||
|
static patch_t *fireflower;
|
||||||
|
|
||||||
static boolean facefreed[MAXPLAYERS];
|
static boolean facefreed[MAXPLAYERS];
|
||||||
|
|
||||||
|
@ -317,6 +318,8 @@ void ST_LoadGraphics(void)
|
||||||
sneakers = W_CachePatchName("TVSSICON", PU_HUDGFX);
|
sneakers = W_CachePatchName("TVSSICON", PU_HUDGFX);
|
||||||
gravboots = W_CachePatchName("TVGVICON", PU_HUDGFX);
|
gravboots = W_CachePatchName("TVGVICON", PU_HUDGFX);
|
||||||
|
|
||||||
|
fireflower = W_CachePatchName("GOTFFLOW", PU_HUDGFX);
|
||||||
|
|
||||||
tagico = W_CachePatchName("TAGICO", PU_HUDGFX);
|
tagico = W_CachePatchName("TAGICO", PU_HUDGFX);
|
||||||
gotrflag = W_CachePatchName("GOTRFLAG", PU_HUDGFX);
|
gotrflag = W_CachePatchName("GOTRFLAG", PU_HUDGFX);
|
||||||
gotbflag = W_CachePatchName("GOTBFLAG", PU_HUDGFX);
|
gotbflag = W_CachePatchName("GOTBFLAG", PU_HUDGFX);
|
||||||
|
@ -1504,7 +1507,7 @@ static void ST_drawPowerupHUD(void)
|
||||||
UINT16 invulntime = 0;
|
UINT16 invulntime = 0;
|
||||||
INT32 offs = hudinfo[HUD_POWERUPS].x;
|
INT32 offs = hudinfo[HUD_POWERUPS].x;
|
||||||
const UINT8 q = ((splitscreen && stplyr == &players[secondarydisplayplayer]) ? 1 : 0);
|
const UINT8 q = ((splitscreen && stplyr == &players[secondarydisplayplayer]) ? 1 : 0);
|
||||||
static INT32 flagoffs[2] = {0, 0}, shieldoffs[2] = {0, 0}, finishoffs[2] = {0, 0};
|
static INT32 flagoffs[2] = {0, 0}, shieldoffs[2] = {0, 0}, finishoffs[2] = {0, 0}, stackkoffs[2] = {0,0};
|
||||||
|
|
||||||
if (F_GetPromptHideHud(hudinfo[HUD_POWERUPS].y))
|
if (F_GetPromptHideHud(hudinfo[HUD_POWERUPS].y))
|
||||||
return;
|
return;
|
||||||
|
@ -1579,6 +1582,22 @@ static void ST_drawPowerupHUD(void)
|
||||||
|
|
||||||
offs -= shieldoffs[q];
|
offs -= shieldoffs[q];
|
||||||
|
|
||||||
|
//Fire Flower "shield"
|
||||||
|
if (stplyr->powers[pw_shield] & SH_FIREFLLOWER)
|
||||||
|
{
|
||||||
|
stackoffs[q] = ICONSEP;
|
||||||
|
V_DrawSmallScaledPatch(offs, hudinfo[HUD_POWERUPS].y, V_PERPLAYER|hudinfo[HUD_POWERUPS].f|V_HUDTRANS, fireflower);
|
||||||
|
}
|
||||||
|
else if (stackoffs[q])
|
||||||
|
{
|
||||||
|
if (stackoffs[q] > 1)
|
||||||
|
stackoffs[q] = 2*stackoffs[q]/3;
|
||||||
|
else
|
||||||
|
stackoffs[q] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
offs -= stackoffs[q];
|
||||||
|
|
||||||
// ---------
|
// ---------
|
||||||
// CTF flags
|
// CTF flags
|
||||||
// ---------
|
// ---------
|
||||||
|
|
Loading…
Reference in a new issue