- 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:
parent
388f87a737
commit
8832b66ce4
8 changed files with 12 additions and 16 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue