Skip to content

Commit

Permalink
Strip any FF_FULLBRIGHT flags from sprite frames for HUD
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Aug 29, 2024
1 parent 1d79e72 commit 1758076
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hu_stuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ void HU_Init(void)
state_t *state = &states[mobjinfo[ammothing].spawnstate];

weaponinfo[i].ammopatch = W_CacheLumpNum(firstspritelump
+ sprites[state->sprite].spriteframes[state->frame].lump[0]);
+ sprites[state->sprite].spriteframes[state->frame & ~FF_FULLBRIGHT].lump[0]);
}
}

Expand Down Expand Up @@ -822,7 +822,7 @@ static void HU_AltInit(void)
state_t *state = &states[mobjinfo[weaponthing].spawnstate];

weaponinfo[i].weaponpatch = W_CacheLumpNum(firstspritelump
+ sprites[state->sprite].spriteframes[state->frame].lump[0]);
+ sprites[state->sprite].spriteframes[state->frame & ~FF_FULLBRIGHT].lump[0]);
weaponinfo[i].weapony = ALTHUD_Y + 10 - SHORT(weaponinfo[i].weaponpatch->height) / 2;
}
}
Expand Down

0 comments on commit 1758076

Please sign in to comment.