- Fixed: ActorStencilColor() did not set the palette part of the actor's

fill color, so it would always produce black for STYLE_Shaded.


SVN r990 (trunk)
This commit is contained in:
Randy Heit 2008-05-23 02:13:31 +00:00
commit 4649d011c6
2 changed files with 4 additions and 2 deletions

View file

@ -1477,7 +1477,7 @@ static void ActorTranslation (FScanner &sc, AActor *defaults, Baggage &bag)
//==========================================================================
//
//==========================================================================
static void ActorStencilColor (FScanner &sc,AActor *defaults, Baggage &bag)
static void ActorStencilColor (FScanner &sc, AActor *defaults, Baggage &bag)
{
int r,g,b;
@ -1500,7 +1500,7 @@ static void ActorStencilColor (FScanner &sc,AActor *defaults, Baggage &bag)
g=GPART(c);
b=BPART(c);
}
defaults->fillcolor = MAKERGB(r,g,b);
defaults->fillcolor = MAKERGB(r,g,b) | (ColorMatcher.Pick (r, g, b) << 24);
}