From 275be8b0a89bdd9439c7e04f75f092345318c560 Mon Sep 17 00:00:00 2001 From: Unreal Karaulov Date: Sat, 4 Dec 2021 02:07:59 +0300 Subject: [PATCH] Fix one big issue what broken all plugins! (#1022) If found any config from servercmd, m_ConfigsExecutedForward not called !!!!!!! If m_ConfigsExecutedForward not called, this is broke all plugins where used m_ConfigsExecutedForward (example restmenu) --- amxmodx/CoreConfig.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/amxmodx/CoreConfig.cpp b/amxmodx/CoreConfig.cpp index ede4048d..a2cbe222 100644 --- a/amxmodx/CoreConfig.cpp +++ b/amxmodx/CoreConfig.cpp @@ -316,14 +316,10 @@ void CoreConfig::CheckLegacyBufferedCommand(char *command) return; } - if (!m_LegacyMainConfigExecuted && strstr(command, MainConfigFile)) + if (!m_LegacyMainConfigExecuted && (strstr(command, MainConfigFile) || strstr(command, MapConfigDir))) { m_LegacyMainConfigExecuted = true; - } - - if (!m_LegacyMapConfigsExecuted && strstr(command, MapConfigDir)) - { - m_LegacyMapConfigsExecuted = true; + m_PendingForwardPush = true; } }