Make OnClientAuthorized use Steam2 ids where available

This commit is contained in:
Nicholas Hastings
2014-09-09 17:43:01 -07:00
parent acdd9e12ea
commit 9e6fcc7673
2 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -394,7 +394,9 @@ void ClientPrefs::CatchLateLoadClients()
continue;
}
g_CookieManager.OnClientAuthorized(i, pPlayer->GetAuthString());
/* For legacy reasons, OnClientAuthorized gives the Steam2 id here if using Steam auth */
const char *steamId = pPlayer->GetSteam2Id();
g_CookieManager.OnClientAuthorized(i, steamId[0] ? steamId : pPlayer->GetAuthString());
}
}