Added Blue Shadow's A_SpawnItemEx changes: (1/2)

SXF_TRANSFERALPHA and SXF_TRANSFERRENDERSTYLE
This commit is contained in:
MajorCooke 2014-09-19 14:15:31 -05:00
parent c2377ff8e1
commit 5c4ad9be68
1 changed files with 10 additions and 0 deletions

View File

@ -1755,6 +1755,8 @@ enum SIX_Flags
SIXF_TRANSFERSPECIAL = 1 << 15,
SIXF_CLEARCALLERSPECIAL = 1 << 16,
SIXF_TRANSFERSTENCILCOL = 1 << 17,
SIXF_TRANSFERALPHA = 1 << 18,
SIXF_TRANSFERRENDERSTYLE = 1 << 19,
};
static bool InitSpawnedItem(AActor *self, AActor *mo, int flags)
@ -1875,6 +1877,14 @@ static bool InitSpawnedItem(AActor *self, AActor *mo, int flags)
{
mo->fillcolor = self->fillcolor;
}
if (flags & SIXF_TRANSFERALPHA)
{
mo->alpha = self->alpha;
}
if (flags & SIXF_TRANSFERRENDERSTYLE)
{
mo->RenderStyle = self->RenderStyle;
}
return true;
}