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)
This commit is contained in:
Unreal Karaulov 2021-12-04 02:07:59 +03:00 committed by GitHub
parent f8ac58c839
commit 275be8b0a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}