- made AActor::alpha a floating point value
- replaced some uses of FRACUNIT with OPAQUE when it was about translucency. - simplified some overly complicated translucency multiplications in the SBARINFO code.
This commit is contained in:
parent
b29058c1ab
commit
4e60ea0252
50 changed files with 235 additions and 216 deletions
|
|
@ -440,7 +440,7 @@ static void ParseInsideDecoration (Baggage &bag, AActor *defaults,
|
|||
else if (sc.Compare ("Alpha"))
|
||||
{
|
||||
sc.MustGetFloat ();
|
||||
defaults->alpha = int(clamp (sc.Float, 0.0, 1.0) * OPAQUE);
|
||||
defaults->Alpha = clamp (sc.Float, 0.0, 1.0);
|
||||
}
|
||||
else if (sc.Compare ("Scale"))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue