Integrating authentication - now all authentication attempts fail (still work in progress).

This commit is contained in:
lotodore
2009-09-26 16:05:35 +00:00
parent b15b845077
commit 48c4c69277
8 changed files with 19 additions and 15 deletions
+2 -2
View File
@@ -121,7 +121,7 @@ SessionManager::GetSessionByPlayerName(const string playerName) const
}
SessionWrapper
SessionManager::GetSessionByUniquePlayerId(unsigned uniqueId) const
SessionManager::GetSessionByUniquePlayerId(unsigned uniqueId, bool preInitSessions) const
{
SessionWrapper tmpSession;
boost::recursive_mutex::scoped_lock lock(m_sessionMapMutex);
@@ -132,7 +132,7 @@ SessionManager::GetSessionByUniquePlayerId(unsigned uniqueId) const
while (session_i != session_end)
{
// Check all players which are fully connected.
if (session_i->second.sessionData->GetState() != SessionData::Init)
if (preInitSessions || session_i->second.sessionData->GetState() != SessionData::Init)
{
boost::shared_ptr<PlayerData> tmpPlayer(session_i->second.playerData);
if (!tmpPlayer.get())