Speculative fix for bot issues with SteamAuthstringValidation (r=psychonic).

This commit is contained in:
Asher Baker 2013-10-08 11:27:26 -04:00
parent e3cb33bbda
commit 67a2fe3751

View File

@ -2019,7 +2019,7 @@ bool CPlayer::IsAuthorized()
bool CPlayer::IsAuthStringValidated() bool CPlayer::IsAuthStringValidated()
{ {
#if SOURCE_ENGINE >= SE_ORANGEBOX #if SOURCE_ENGINE >= SE_ORANGEBOX
if (g_Players.m_bAuthstringValidation && !g_HL2.IsLANServer()) if (!IsFakeClient() && g_Players.m_bAuthstringValidation && !g_HL2.IsLANServer())
{ {
#if SOURCE_ENGINE == SE_DOTA #if SOURCE_ENGINE == SE_DOTA
return engine->IsClientFullyAuthenticated(m_iIndex); return engine->IsClientFullyAuthenticated(m_iIndex);