Skip to content

Commit

Permalink
Remove texture from weapon silhouette in alt HUD
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Sep 27, 2024
1 parent 3a1d6ac commit d09f0ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
7 changes: 1 addition & 6 deletions src/hu_stuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -1376,12 +1376,7 @@ static void HU_DrawAltHUD(void)
althudfunc(ALTHUD_RIGHT_X, ALTHUD_Y + 13, altrightpatch, WHITE, color, tinttab60, shadowcolor);

if ((patch = weaponinfo[weapon].weaponpatch))
{
if (inverted)
althudweaponfunc(ALTHUD_RIGHT_X + 108, weaponinfo[weapon].weapony, patch, color, black75, shadowcolor);
else
althudweaponfunc(ALTHUD_RIGHT_X + 108, weaponinfo[weapon].weapony, patch, color, white75, shadowcolor);
}
althudweaponfunc(ALTHUD_RIGHT_X + 108, weaponinfo[weapon].weapony, patch, color, tinttab60, shadowcolor);

for (int i = 1; i <= NUMCARDS; i++)
for (int j = 0; j < NUMCARDS; j++)
Expand Down
6 changes: 2 additions & 4 deletions src/v_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ void V_DrawAltHUDWeaponPatch(int x, int y, patch_t *patch, int color, const byte

while (count-- > 0)
{
*dest = tinttab[grays[*source++]];
*dest = color;
dest += SCREENWIDTH;

if (++yy == SCREENHEIGHT)
Expand Down Expand Up @@ -1218,9 +1218,7 @@ void V_DrawTranslucentAltHUDWeaponPatch(int x, int y, patch_t *patch, int color,

while (count-- > 0)
{
const byte dot = *source++;

*dest = tinttab75[(tinttab[grays[dot]] << 8) + *dest];
*dest = tinttab[(color << 8) + *dest];
dest += SCREENWIDTH;

if (++yy == SCREENHEIGHT - 1)
Expand Down

0 comments on commit d09f0ad

Please sign in to comment.