Small fixes.
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#define STARTWINDOWIMPL_H
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <assert.h>
|
||||
#include "ui_startwindow.h"
|
||||
#include "game_defs.h"
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ SessionManager::GetSessionByPlayerName(const string playerName) const
|
||||
}
|
||||
|
||||
SessionWrapper
|
||||
SessionManager::GetSessionByUniquePlayerId(unsigned uniqueId, bool preInitSessions) const
|
||||
SessionManager::GetSessionByUniquePlayerId(unsigned uniqueId, bool initSessions) const
|
||||
{
|
||||
SessionWrapper tmpSession;
|
||||
boost::recursive_mutex::scoped_lock lock(m_sessionMapMutex);
|
||||
@@ -132,7 +132,7 @@ SessionManager::GetSessionByUniquePlayerId(unsigned uniqueId, bool preInitSessio
|
||||
while (session_i != session_end)
|
||||
{
|
||||
// Check all players which are fully connected.
|
||||
if (preInitSessions || session_i->second.sessionData->GetState() != SessionData::Init)
|
||||
if (initSessions || session_i->second.sessionData->GetState() != SessionData::Init)
|
||||
{
|
||||
boost::shared_ptr<PlayerData> tmpPlayer(session_i->second.playerData);
|
||||
if (!tmpPlayer.get())
|
||||
|
||||
@@ -55,7 +55,7 @@ public:
|
||||
|
||||
SessionWrapper GetSessionById(SessionId id) const;
|
||||
SessionWrapper GetSessionByPlayerName(const std::string playerName) const;
|
||||
SessionWrapper GetSessionByUniquePlayerId(unsigned uniqueId, bool preInitSessions = false) const;
|
||||
SessionWrapper GetSessionByUniquePlayerId(unsigned uniqueId, bool initSessions = false) const;
|
||||
|
||||
PlayerDataList GetPlayerDataList() const;
|
||||
PlayerIdList GetPlayerIdList(SessionData::State state) const;
|
||||
|
||||
Reference in New Issue
Block a user