Skip to content

Commit

Permalink
Duke3D: Fix highlight of Incinerator ammo in full status bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendricks266 committed May 15, 2024
1 parent 1db118e commit 4929213
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions source/duke3d/src/sbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,16 @@ static void G_DrawWeapAmounts(const DukePlayer_t *p, int32_t x, int32_t y, int32
{
if (u != -1) G_PatchStatusBar(158, 190, 162+29, 190+6); //original code: (166,190,166+8,190+6);

G_DrawWeapNum(-1, x+70, y+12,
p->ammo_amount[FREEZE_WEAPON], p->max_ammo_amount[FREEZE_WEAPON],
(((p->gotweapon & (1<<FREEZE_WEAPON)) == 0)*9)+12-18*
(cw == FREEZE_WEAPON));
if (p->subweapon&(1<<FLAMETHROWER_WEAPON))
G_DrawWeapNum(-1, x+70, y+12,
p->ammo_amount[FLAMETHROWER_WEAPON], p->max_ammo_amount[FLAMETHROWER_WEAPON],
(((p->gotweapon & (1<<FLAMETHROWER_WEAPON)) == 0)*9)+12-18*
(cw == FLAMETHROWER_WEAPON));
else
G_DrawWeapNum(-1, x+70, y+12,
p->ammo_amount[FREEZE_WEAPON], p->max_ammo_amount[FREEZE_WEAPON],
(((p->gotweapon & (1<<FREEZE_WEAPON)) == 0)*9)+12-18*
(cw == FREEZE_WEAPON));
}
}

Expand Down

0 comments on commit 4929213

Please sign in to comment.