Skip to content

Commit

Permalink
HacX: Use a gray view filter when collecting a bonus item
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Feb 5, 2012
1 parent 4c6d040 commit 0a85406
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions doomsday/plugins/jdoom/src/d_refresh.c
Expand Up @@ -119,11 +119,24 @@ boolean R_ViewFilterColor(float rgba[4], int filter)

if(filter >= STARTBONUSPALS && filter < STARTBONUSPALS + NUMBONUSPALS)
{
// Gold.
rgba[CR] = 1;
rgba[CG] = .8f;
rgba[CB] = .5f;
rgba[CA] = cfg.filterStrength * (filter - STARTBONUSPALS + 1) / 16.f;
if(gameMode == doom2_hacx)
{
// The original palette shift desaturates everything evenly.
// Rather than mess with this right now when we'll be replacing
// all the filter stuff entirely soon enough - simply use gray.
rgba[CR] = .5f;
rgba[CG] = .5f;
rgba[CB] = .5f;
rgba[CA] = cfg.filterStrength * (filter - STARTBONUSPALS + 1) / 16.f;
}
else
{
// Gold.
rgba[CR] = 1;
rgba[CG] = .8f;
rgba[CB] = .5f;
rgba[CA] = cfg.filterStrength * (filter - STARTBONUSPALS + 1) / 16.f;
}
return true;
}

Expand Down

0 comments on commit 0a85406

Please sign in to comment.