More fixes. Using player name as base for game name now. Removing games which have no players left. Check collision of all player names on connect (kind of slow, but name needs to be unique).
This commit is contained in:
@@ -34,6 +34,13 @@ SessionManager::~SessionManager()
|
||||
Clear();
|
||||
}
|
||||
|
||||
bool
|
||||
SessionManager::HasSessions() const
|
||||
{
|
||||
boost::mutex::scoped_lock lock(m_sessionMapMutex);
|
||||
return !m_sessionMap.empty();
|
||||
}
|
||||
|
||||
void
|
||||
SessionManager::AddSession(boost::shared_ptr<SessionData> sessionData)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user