Fix clientprefs IsAuthIdConnected (again).
This commit is contained in:
parent
ea86eee74e
commit
b0ceac9d74
@ -91,31 +91,20 @@ size_t IsAuthIdConnected(char *authID)
|
|||||||
for (int playerIndex = playerhelpers->GetMaxClients()+1; --playerIndex > 0;)
|
for (int playerIndex = playerhelpers->GetMaxClients()+1; --playerIndex > 0;)
|
||||||
{
|
{
|
||||||
player = playerhelpers->GetGamePlayer(playerIndex);
|
player = playerhelpers->GetGamePlayer(playerIndex);
|
||||||
if (player == NULL || !player->IsConnected())
|
if (player == NULL || !player->IsAuthorized())
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
authString = player->GetAuthString();
|
if (!strcmp(player->GetAuthString(), authID)
|
||||||
if (authString == NULL || authString[0] == '\0' || strcmp(authString, authID) != 0)
|
|| !strcmp(player->GetSteam2Id(), authID)
|
||||||
|
|| !strcmp(player->GetSteam3Id(), authID)
|
||||||
|
)
|
||||||
{
|
{
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
authString = player->GetSteam2Id();
|
|
||||||
if (authString == NULL || authString[0] == '\0' || strcmp(authString, authID) != 0)
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
authString = player->GetSteam3Id();
|
|
||||||
if (authString == NULL || authString[0] == '\0' || strcmp(authString, authID) != 0)
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
return playerIndex;
|
return playerIndex;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user