From 6d537f6d751dd9e30a6b14518a5b7f1f2b019f67 Mon Sep 17 00:00:00 2001 From: NY00123 Date: Thu, 2 Apr 2020 23:04:25 +0000 Subject: [PATCH] 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 --- source/sw/src/game.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/sw/src/game.h b/source/sw/src/game.h index dd7b93782..f7f3044ee 100644 --- a/source/sw/src/game.h +++ b/source/sw/src/game.h @@ -1054,6 +1054,8 @@ enum }; +// TODO: Support compatible read/write of struct for big-endian +#pragma pack(push,1) typedef struct { int16_t vel; @@ -1062,6 +1064,7 @@ typedef struct int8_t aimvel; int32_t bits; } SW_PACKET; +#pragma pack(pop) extern SW_PACKET loc;