From 614c7d8332a16ac5ee54b50fae8e97d03d9fce54 Mon Sep 17 00:00:00 2001 From: Vauff Date: Mon, 6 Jun 2022 08:45:35 -0400 Subject: [PATCH] Expand ShowHudText message buffer for Protobuf games (#1777) * Expand ShowHudText message buffer for CS:GO * Expand buffer on Blade Symphony too --- core/smn_hudtext.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/smn_hudtext.cpp b/core/smn_hudtext.cpp index 90b04052..6f7af02e 100644 --- a/core/smn_hudtext.cpp +++ b/core/smn_hudtext.cpp @@ -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()) {