- Gave the PlayerPawn base class a default damage fade color instead of

hacking it into the actor when actually used.
- Fixed: The DamageFade color was not saved in savegames.


SVN r1190 (trunk)
This commit is contained in:
Christoph Oelckers 2008-09-01 18:16:53 +00:00
commit 8832b66ce4
8 changed files with 12 additions and 16 deletions

View file

@ -1474,16 +1474,6 @@ void DBaseStatusBar::BlendView (float blend[4])
cnt = 228;
APlayerPawn *mo = players[consoleplayer].mo;
// [CW] If no damage fade is specified, assume defaults.
if (!mo->HasDamageFade)
{
mo->HasDamageFade = true;
mo->RedDamageFade = 255;
mo->GreenDamageFade = 0;
mo->BlueDamageFade = 0;
}
AddBlend (mo->RedDamageFade / 255, mo->GreenDamageFade / 255, mo->BlueDamageFade / 255, cnt / 255.f, blend);
}