Fix CHostState structure alignment for builds below S3

Static level name array size has been increased from 32 bytes to 64 bytes in S3
This commit is contained in:
Kawe Mazidjatari 2022-05-20 01:40:44 +02:00
parent 1fb89c35c8
commit 0fa525c717
2 changed files with 7 additions and 1 deletions

View File

@ -37,7 +37,7 @@ public:
HostStates_t m_iNextState; //0x0004
Vector3 m_vecLocation; //0x0008
QAngle m_angLocation; //0x0014
char m_levelName[64]; //0x0020
char m_levelName[MAX_LEVELNAME_LEN]; //0x0020
char m_mapGroupName[256]; //0x0060
char m_landMarkName[256]; //0x0160
float m_flShortFrameTime; //0x0260

View File

@ -16,6 +16,12 @@
#define MAX_PLAYERS 128 // Max R5 players.
#if !defined (GAMEDLL_S0) && !defined (GAMEDLL_S1) && !defined (GAMEDLL_S2)
#define MAX_LEVELNAME_LEN 64
#else
#define MAX_LEVELNAME_LEN 32
#endif // Max BSP file name len.
#define SDK_VERSION "beta 1.6"/*"VGameSDK001"*/ // Increment this with every /breaking/ SDK change (i.e. security/backend changes breaking compatibility).
#ifndef DEDICATED