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:
NY00123 2020-04-02 23:04:25 +00:00 committed by Christoph Oelckers
parent 83936bf5eb
commit 6d537f6d75

View file

@ -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;