mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Make tspritetype its own distinct struct
git-svn-id: https://svn.eduke32.com/eduke32@8520 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
5a41b545e5
commit
422601bc82
2 changed files with 32 additions and 1 deletions
|
@ -308,7 +308,6 @@ using uwalltype = uwalltypevx;
|
||||||
|
|
||||||
using spritetype = spritetypev7;
|
using spritetype = spritetypev7;
|
||||||
using uspritetype = uspritetypev7;
|
using uspritetype = uspritetypev7;
|
||||||
using tspritetype = uspritetypev7;
|
|
||||||
|
|
||||||
using uspriteptr_t = uspritetype const *;
|
using uspriteptr_t = uspritetype const *;
|
||||||
using uwallptr_t = uwalltype const *;
|
using uwallptr_t = uwalltype const *;
|
||||||
|
|
|
@ -212,6 +212,38 @@ typedef struct
|
||||||
StructTracker(Sprite, int16_t) extra;
|
StructTracker(Sprite, int16_t) extra;
|
||||||
} StructName(spritetypev7);
|
} StructName(spritetypev7);
|
||||||
|
|
||||||
|
#ifndef buildtypes_h__enums
|
||||||
|
//44 bytes
|
||||||
|
// TODO: Remove unused fields from the end of this struct. (TSPRITE_SIZE)
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
union {
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
int32_t x, y, z;
|
||||||
|
};
|
||||||
|
vec3_t pos;
|
||||||
|
};
|
||||||
|
uint16_t cstat;
|
||||||
|
int16_t picnum;
|
||||||
|
int8_t shade;
|
||||||
|
uint8_t pal, clipdist, blend;
|
||||||
|
uint8_t xrepeat, yrepeat;
|
||||||
|
int8_t xoffset, yoffset;
|
||||||
|
int16_t sectnum, statnum;
|
||||||
|
int16_t ang, owner;
|
||||||
|
union {
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
int16_t xvel, yvel, zvel;
|
||||||
|
};
|
||||||
|
vec3_16_t vel;
|
||||||
|
};
|
||||||
|
int16_t lotag, hitag;
|
||||||
|
int16_t extra;
|
||||||
|
} tspritetype;
|
||||||
|
#endif
|
||||||
|
|
||||||
//////////////////// END Version 7 map format ////////////////
|
//////////////////// END Version 7 map format ////////////////
|
||||||
|
|
||||||
//////////////////// Lunatic new-generation map format ////////////////////
|
//////////////////// Lunatic new-generation map format ////////////////////
|
||||||
|
|
Loading…
Reference in a new issue