Skip to content

Commit

Permalink
Heretic: Add comments to colormap A11Y overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
Noseey committed Jan 13, 2025
1 parent 40fa086 commit 8501390
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/heretic/r_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ void R_SetupFrame(player_t * player)
int tableAngle;
int tempCentery;
int pitch; // [crispy]
int tmpColormap; // [crispy]
int tmpColormap; // [crispy] to overwrite colormap

//drawbsp = 1;
viewplayer = player;
Expand Down Expand Up @@ -994,10 +994,11 @@ void R_SetupFrame(player_t * player)
if (player->fixedcolormap)
{
tmpColormap = player->fixedcolormap;
// [crispy] A11Y - overwrite to disable invul-colormap or torch flickering
if ((!a11y_invul_colormap && player->powers[pw_invulnerability]) ||
(!a11y_weapon_flash && player->powers[pw_infrared] && !player->powers[pw_invulnerability]))
{
tmpColormap = 1; // [crispy] A11Y
tmpColormap = 1; // [crispy] A11Y - static infrared map
}

fixedcolormap = colormaps + tmpColormap
Expand Down

0 comments on commit 8501390

Please sign in to comment.