- added option to set item pickup color through MAPINFO's GAMEINFO block.

SVN r2539 (trunk)
This commit is contained in:
Christoph Oelckers 2010-08-14 06:25:38 +00:00
commit b288a7a416
8 changed files with 10 additions and 1 deletions

View file

@ -1504,7 +1504,9 @@ void DBaseStatusBar::BlendView (float blend[4])
if (CPlayer->bonuscount)
{
cnt = CPlayer->bonuscount << 3;
AddBlend (0.8431f, 0.7333f, 0.2706f, cnt > 128 ? 0.5f : cnt / 255.f, blend);
AddBlend (RPART(gameinfo.pickupcolor)/255.f, GPART(gameinfo.pickupcolor)/255.f,
BPART(gameinfo.pickupcolor)/255.f, cnt > 128 ? 0.5f : cnt / 255.f, blend);
}
if (CPlayer->mo->DamageFade.a != 0)