Skip to content

Commit

Permalink
Further work on weapon silhouettes
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Aug 27, 2024
1 parent 3413403 commit c11737f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/hu_stuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ static void HU_DrawAltHUD(void)
althudfunc(ALTHUD_RIGHT_X, ALTHUD_Y + 13, altrightpatch, WHITE, color, tinttab60);

if ((patch = weaponinfo[weapon].weaponpatch))
hudweaponfunc(ALTHUD_RIGHT_X + 108, ALTHUD_Y, patch, tinttab60);
hudweaponfunc(ALTHUD_RIGHT_X + 108, ALTHUD_Y + 10 - SHORT(patch->height) / 2, patch, tinttab60);

for (int i = 1; i <= NUMCARDS; i++)
for (int j = 0; j < NUMCARDS; j++)
Expand Down
6 changes: 6 additions & 0 deletions src/v_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,9 @@ void V_DrawHUDWeaponPatch(int x, int y, patch_t *patch, const byte *tinttab)
{
column_t *column = (column_t *)((byte *)patch + LONG(patch->columnoffset[col]));

if (x + width - col >= SCREENWIDTH)
continue;

// step through the posts in a column
while (column->topdelta != 0xFF)
{
Expand Down Expand Up @@ -1056,6 +1059,9 @@ void V_DrawTranslucentHUDWeaponPatch(int x, int y, patch_t *patch, const byte *t
{
column_t *column = (column_t *)((byte *)patch + LONG(patch->columnoffset[col]));

if (x + width - col >= SCREENWIDTH)
continue;

// step through the posts in a column
while (column->topdelta != 0xFF)
{
Expand Down

0 comments on commit c11737f

Please sign in to comment.