diff --git a/r5dev/engine/host_state.h b/r5dev/engine/host_state.h index 272fcba1..9d5f584a 100644 --- a/r5dev/engine/host_state.h +++ b/r5dev/engine/host_state.h @@ -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 diff --git a/r5dev/tier0/basetypes.h b/r5dev/tier0/basetypes.h index dcbda55a..b7850e5c 100644 --- a/r5dev/tier0/basetypes.h +++ b/r5dev/tier0/basetypes.h @@ -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