Fix regression causing inconsistencies in clientprefs auth id handling (r=VoiDeD).

This commit is contained in:
Nicholas Hastings
2014-09-12 13:04:37 -07:00
parent e72ff963f5
commit 570570f7a0
3 changed files with 12 additions and 6 deletions
+2 -2
View File
@@ -159,7 +159,7 @@ void CookieManager::OnClientAuthorized(int client, const char *authstring)
g_ClientPrefs.AttemptReconnection();
TQueryOp *op = new TQueryOp(Query_SelectData, player->GetSerial());
UTIL_strncpy(op->m_params.steamId, authstring, MAX_NAME_LENGTH);
UTIL_strncpy(op->m_params.steamId, GetPlayerCompatAuthId(player), MAX_NAME_LENGTH);
g_ClientPrefs.AddQueryToQueue(op);
}
@@ -181,7 +181,7 @@ void CookieManager::OnClientDisconnecting(int client)
if (player)
{
pAuth = player->GetAuthString();
pAuth = GetPlayerCompatAuthId(player);
g_ClientPrefs.ClearQueryCache(player->GetSerial());
}