Expand ShowHudText message buffer for Protobuf games (#1777)

* Expand ShowHudText message buffer for CS:GO

* Expand buffer on Blade Symphony too
This commit is contained in:
Vauff 2022-06-06 08:45:35 -04:00 committed by GitHub
parent 7424deefb9
commit 5c0ae11a46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -373,7 +373,11 @@ static cell_t ShowSyncHudText(IPluginContext *pContext, const cell_t *params)
Handle_t err;
CPlayer *pPlayer;
hud_syncobj_t *obj;
#if SOURCE_ENGINE == SE_CSGO || SOURCE_ENGINE == SE_BLADE
char message_buffer[512];
#else
char message_buffer[255-36];
#endif
if (!s_HudMsgHelpers.IsSupported())
{
@ -453,7 +457,11 @@ static cell_t ShowHudText(IPluginContext *pContext, const cell_t *params)
{
int client;
CPlayer *pPlayer;
#if SOURCE_ENGINE == SE_CSGO || SOURCE_ENGINE == SE_BLADE
char message_buffer[512];
#else
char message_buffer[255-36];
#endif
if (!s_HudMsgHelpers.IsSupported())
{