mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-18 23:21:41 +00:00
Reorder FMapThing to remove padding
This commit is contained in:
parent
1fddd1859e
commit
bbbbb7ac9d
2 changed files with 10 additions and 10 deletions
|
@ -347,10 +347,10 @@ struct FMapThing
|
|||
fixed_t y;
|
||||
fixed_t z;
|
||||
short angle;
|
||||
FDoomEdEntry *info;
|
||||
short EdNum;
|
||||
WORD SkillFilter;
|
||||
WORD ClassFilter;
|
||||
short EdNum;
|
||||
FDoomEdEntry *info;
|
||||
DWORD flags;
|
||||
int special;
|
||||
int args[5];
|
||||
|
|
|
@ -781,14 +781,14 @@ vertex_t *FindVertex (fixed_t x, fixed_t y)
|
|||
static void CreateStartSpot (fixed_t *pos, FMapThing *start)
|
||||
{
|
||||
short angle = LittleShort(*(WORD *)(&pos[3]));
|
||||
FMapThing mt =
|
||||
{
|
||||
0, (LittleLong(pos[0])<<12), ((-LittleLong(pos[1]))<<12), 0,// tid, x, y, z
|
||||
short(Scale ((2048-angle)&2047, 360, 2048)), DoomEdMap.CheckKey(1), 1, // angle, type
|
||||
0, 0, // Skillfilter, Classfilter
|
||||
7|MTF_SINGLE|224, // flags
|
||||
0, {0}, 0 // special is 0, args and Conversation are 0
|
||||
};
|
||||
FMapThing mt = { 0, };
|
||||
|
||||
mt.x = LittleLong(pos[0])<<12;
|
||||
mt.y = (-LittleLong(pos[1]))<<12;
|
||||
mt.angle = short(Scale((2048-angle)&2047, 360, 2048));
|
||||
mt.info = DoomEdMap.CheckKey(1);
|
||||
mt.EdNum = 1;
|
||||
mt.flags = 7|MTF_SINGLE|224;
|
||||
|
||||
*start = mt;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue