added experimental callback for modules to get authorization

This commit is contained in:
David Anderson
2006-02-28 09:59:03 +00:00
parent 628d38df7a
commit dc5506efe3
6 changed files with 74 additions and 8 deletions

View File

@@ -134,11 +134,6 @@ bool CPlayer::Connect(const char* connectname, const char* ipaddress)
hudmap[i] = 0;
}
const char* authid = GETPLAYERAUTHID(pEdict);
if ((authid == 0) || (*authid == 0) || (strcmp(authid, "STEAM_ID_PENDING") == 0))
return true;
List<ClientCvarQuery_Info *>::iterator iter, end=queries.end();
for (iter=queries.begin(); iter!=end; iter++)
{
@@ -148,6 +143,11 @@ bool CPlayer::Connect(const char* connectname, const char* ipaddress)
}
queries.clear();
const char* authid = GETPLAYERAUTHID(pEdict);
if ((authid == 0) || (*authid == 0) || (strcmp(authid, "STEAM_ID_PENDING") == 0))
return true;
return false;
}