mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- Added SXF_TRANSFERROLL.
This commit is contained in:
parent
d8d2058ec6
commit
0f4bca8607
2 changed files with 7 additions and 0 deletions
|
@ -1875,6 +1875,7 @@ enum SIX_Flags
|
||||||
SIXF_NOPOINTERS = 0x00400000,
|
SIXF_NOPOINTERS = 0x00400000,
|
||||||
SIXF_ORIGINATOR = 0x00800000,
|
SIXF_ORIGINATOR = 0x00800000,
|
||||||
SIXF_TRANSFERSPRITEFRAME = 0x01000000,
|
SIXF_TRANSFERSPRITEFRAME = 0x01000000,
|
||||||
|
SIXF_TRANSFERROLL = 0x02000000,
|
||||||
};
|
};
|
||||||
|
|
||||||
static bool InitSpawnedItem(AActor *self, AActor *mo, int flags)
|
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;
|
mo->frame = self->frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (flags & SIXF_TRANSFERROLL)
|
||||||
|
{
|
||||||
|
mo->roll = self->roll;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -73,6 +73,7 @@ const int SXF_SETTRACER = 1 << 21;
|
||||||
const int SXF_NOPOINTERS = 1 << 22;
|
const int SXF_NOPOINTERS = 1 << 22;
|
||||||
const int SXF_ORIGINATOR = 1 << 23;
|
const int SXF_ORIGINATOR = 1 << 23;
|
||||||
const int SXF_TRANSFERSPRITEFRAME = 1 << 24;
|
const int SXF_TRANSFERSPRITEFRAME = 1 << 24;
|
||||||
|
const int SXF_TRANSFERROLL = 1 << 25;
|
||||||
|
|
||||||
// Flags for A_Chase
|
// Flags for A_Chase
|
||||||
const int CHF_FASTCHASE = 1;
|
const int CHF_FASTCHASE = 1;
|
||||||
|
|
Loading…
Reference in a new issue