mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
Pack the struct SW_PACKET. While this makes demo playback
functional with existing demo files, the code is known to be incompatible with demos made for SW 1.2. From-SVN: r8792
This commit is contained in:
parent
83936bf5eb
commit
6d537f6d75
1 changed files with 3 additions and 0 deletions
|
@ -1054,6 +1054,8 @@ enum
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// TODO: Support compatible read/write of struct for big-endian
|
||||||
|
#pragma pack(push,1)
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
int16_t vel;
|
int16_t vel;
|
||||||
|
@ -1062,6 +1064,7 @@ typedef struct
|
||||||
int8_t aimvel;
|
int8_t aimvel;
|
||||||
int32_t bits;
|
int32_t bits;
|
||||||
} SW_PACKET;
|
} SW_PACKET;
|
||||||
|
#pragma pack(pop)
|
||||||
|
|
||||||
extern SW_PACKET loc;
|
extern SW_PACKET loc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue