Merge pull request #273 from MajorCooke/transferroll

- Added SXF_TRANSFERROLL.
This commit is contained in:
rheit 2015-02-18 11:28:13 -06:00
commit c23b7cd378
2 changed files with 7 additions and 0 deletions

View file

@ -1875,6 +1875,7 @@ enum SIX_Flags
SIXF_NOPOINTERS = 0x00400000,
SIXF_ORIGINATOR = 0x00800000,
SIXF_TRANSFERSPRITEFRAME = 0x01000000,
SIXF_TRANSFERROLL = 0x02000000,
};
static bool InitSpawnedItem(AActor *self, AActor *mo, int flags)
@ -2027,6 +2028,11 @@ static bool InitSpawnedItem(AActor *self, AActor *mo, int flags)
mo->frame = self->frame;
}
if (flags & SIXF_TRANSFERROLL)
{
mo->roll = self->roll;
}
return true;
}

View file

@ -73,6 +73,7 @@ const int SXF_SETTRACER = 1 << 21;
const int SXF_NOPOINTERS = 1 << 22;
const int SXF_ORIGINATOR = 1 << 23;
const int SXF_TRANSFERSPRITEFRAME = 1 << 24;
const int SXF_TRANSFERROLL = 1 << 25;
// Flags for A_Chase
const int CHF_FASTCHASE = 1;