Fix CNetChan structure for anything lower than S3

This commit is contained in:
Kawe Mazidjatari 2022-04-02 04:11:44 +02:00
parent f7b9754a43
commit f2223d8bd7

View File

@ -110,6 +110,9 @@ private:
int m_nOutSequenceNrAck;
int m_nChokedPackets;
int unknown_challenge_var;
#if defined (GAMEDLL_S0) || defined (GAMEDLL_S1) || defined (GAMEDLL_S2)
char pad[8];
#endif
int m_nLastRecvFlags;
RTL_SRWLOCK LOCK;
bf_write m_StreamReliable;
@ -161,7 +164,10 @@ private:
uint8_t m_bRetrySendLong;
v_netadr_t remote_address;
};
#if defined (GAMEDLL_S0) || defined (GAMEDLL_S1) || defined (GAMEDLL_S2)
static_assert(sizeof(CNetChan) == 0x1AD0);
#else
static_assert(sizeof(CNetChan) == 0x1AC8);
#endif
#endif // NET_CHAN_H