Fix AllowClLanguageVar setting being ignored in CS:GO.

This commit is contained in:
Nicholas Hastings 2017-03-05 17:08:25 -05:00
parent 8ad5862461
commit 9924a28acf

View File

@ -714,7 +714,7 @@ void PlayerManager::OnClientPutInServer(edict_t *pEntity, const char *playername
pPlayer->Authorize_Post();
}
#if SOURCE_ENGINE == SE_CSGO
else
else if(m_QueryLang)
{
// Not a bot
pPlayer->m_LanguageCookie = g_ConVarManager.QueryClientConVar(pEntity, "cl_language", NULL, 0);