clientconnect now blocks properly when needed

removed cruft

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40522
This commit is contained in:
David Anderson 2007-02-17 09:02:22 +00:00
parent b9451b6cc9
commit 2ba612fed7
2 changed files with 3 additions and 8 deletions

View File

@ -195,10 +195,11 @@ bool CPlayerManager::OnClientConnect(edict_t *pEntity, const char *pszName, cons
{
m_AuthQueue[++m_AuthQueue[0]] = client;
g_SourceMod.SetAuthChecking(true);
} else {
RETURN_META_VALUE(MRES_SUPERCEDE, false);
}
//:todo: this must meta return
return (res) ? true : false;
return true;
}
bool CPlayerManager::OnClientConnect_Post(edict_t *pEntity, const char *pszName, const char *pszAddress, char *reject, int maxrejectlen)
@ -257,11 +258,6 @@ void CPlayerManager::OnClientPutInServer(edict_t *pEntity, const char *playernam
m_clputinserver->Execute(&res, NULL);
}
void CPlayerManager::OnClientAuthorized()
{
//:TODO:
}
void CPlayerManager::OnClientDisconnect(edict_t *pEntity)
{
cell_t res;

View File

@ -82,7 +82,6 @@ public:
void OnClientPutInServer(edict_t *pEntity, char const *playername);
void OnClientDisconnect(edict_t *pEntity);
void OnClientDisconnect_Post(edict_t *pEntity);
void OnClientAuthorized(); //:TODO: any args needed?
void OnClientCommand(edict_t *pEntity);
void OnClientSettingsChanged(edict_t *pEntity);
public: //IPlayerManager