From ecad8f25a838f4ec0c2f9cfe956d18008470db3d Mon Sep 17 00:00:00 2001 From: Asher Baker Date: Sun, 8 Mar 2020 13:27:13 +0000 Subject: [PATCH] Revert "csgo: enable SayText + raise msg limits (#1118)" (#1209) This reverts commit 4a8e0799bd0c588169c34cfc26c7eceae1ee0c87. --- core/HalfLife2.cpp | 4 ---- core/smn_halflife.cpp | 9 --------- gamedata/core.games/common.games.txt | 1 - 3 files changed, 14 deletions(-) diff --git a/core/HalfLife2.cpp b/core/HalfLife2.cpp index 0d87083f..27007a03 100644 --- a/core/HalfLife2.cpp +++ b/core/HalfLife2.cpp @@ -513,11 +513,7 @@ bool CHalfLife2::TextMsg(int client, int dest, const char *msg) /* Use SayText user message instead */ if (chat_saytext != NULL && strcmp(chat_saytext, "yes") == 0) { -#if SOURCE_ENGINE == SE_CSGO - char buffer[2022]; -#else char buffer[253]; -#endif ke::SafeSprintf(buffer, sizeof(buffer), "%s\1\n", msg); #if SOURCE_ENGINE == SE_CSGO diff --git a/core/smn_halflife.cpp b/core/smn_halflife.cpp index 22a8926a..ab0c1989 100644 --- a/core/smn_halflife.cpp +++ b/core/smn_halflife.cpp @@ -329,11 +329,7 @@ static cell_t PrintToChat(IPluginContext *pContext, const cell_t *params) g_SourceMod.SetGlobalTarget(client); -#if SOURCE_ENGINE == SE_CSGO - char buffer[2023]; -#else char buffer[254]; -#endif { DetectExceptions eh(pContext); @@ -401,12 +397,7 @@ static cell_t PrintHintText(IPluginContext *pContext, const cell_t *params) g_SourceMod.SetGlobalTarget(client); -#if SOURCE_ENGINE == SE_CSGO - char buffer[0xFFFF]; -#else char buffer[254]; -#endif - { DetectExceptions eh(pContext); g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, 2); diff --git a/gamedata/core.games/common.games.txt b/gamedata/core.games/common.games.txt index 2d659140..270993aa 100644 --- a/gamedata/core.games/common.games.txt +++ b/gamedata/core.games/common.games.txt @@ -200,7 +200,6 @@ "Keys" { "HudRadioMenuMsg" "ShowMenu" - "ChatSayText" "yes" } }