Allow SXF_SETMASTER to work on non-monsters.

This commit is contained in:
MajorCooke 2014-09-18 17:58:06 -05:00
parent 134c9ade21
commit 7a62459c00

View file

@ -1843,6 +1843,10 @@ static bool InitSpawnedItem(AActor *self, AActor *mo, int flags)
// If this is a missile or something else set the target to the originator // If this is a missile or something else set the target to the originator
mo->target = originator ? originator : self; mo->target = originator ? originator : self;
} }
if (flags & SIXF_SETMASTER)
{
mo->master = originator;
}
if (flags & SIXF_TRANSFERSCALE) if (flags & SIXF_TRANSFERSCALE)
{ {
mo->scaleX = self->scaleX; mo->scaleX = self->scaleX;