pass ScriptPosition down to color parser functions
This commit is contained in:
parent
e74b9f1955
commit
0adbb8d631
2 changed files with 5 additions and 5 deletions
|
|
@ -766,7 +766,7 @@ DEFINE_PROPERTY(translation, L, Actor)
|
|||
//==========================================================================
|
||||
DEFINE_PROPERTY(stencilcolor, C, Actor)
|
||||
{
|
||||
PROP_COLOR_PARM(color, 0);
|
||||
PROP_COLOR_PARM(color, 0, &bag.ScriptPosition);
|
||||
|
||||
defaults->fillcolor = color | (ColorMatcher.Pick (RPART(color), GPART(color), BPART(color)) << 24);
|
||||
}
|
||||
|
|
@ -776,7 +776,7 @@ DEFINE_PROPERTY(stencilcolor, C, Actor)
|
|||
//==========================================================================
|
||||
DEFINE_PROPERTY(bloodcolor, C, Actor)
|
||||
{
|
||||
PROP_COLOR_PARM(color, 0);
|
||||
PROP_COLOR_PARM(color, 0, &bag.ScriptPosition);
|
||||
|
||||
defaults->BloodColor = color;
|
||||
defaults->BloodColor.a = 255; // a should not be 0.
|
||||
|
|
@ -1608,7 +1608,7 @@ DEFINE_CLASS_PROPERTY_PREFIX(player, crouchsprite, S, PlayerPawn)
|
|||
//==========================================================================
|
||||
DEFINE_CLASS_PROPERTY_PREFIX(player, damagescreencolor, Cfs, PlayerPawn)
|
||||
{
|
||||
PROP_COLOR_PARM(c, 0);
|
||||
PROP_COLOR_PARM(c, 0, &bag.ScriptPosition);
|
||||
|
||||
PalEntry color = c;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue