The server now sends a notification if the game name is already in use.
This commit is contained in:
@@ -199,7 +199,7 @@ SessionManager::IsPlayerConnected(const string &playerName) const
|
||||
|
||||
SessionWrapper tmpSession = GetSessionByPlayerName(playerName);
|
||||
|
||||
if (tmpSession.sessionData.get() && tmpSession.playerData.get())
|
||||
if (tmpSession.sessionData && tmpSession.playerData)
|
||||
retVal = true;
|
||||
|
||||
return retVal;
|
||||
@@ -212,7 +212,7 @@ SessionManager::IsPlayerConnected(unsigned uniqueId) const
|
||||
|
||||
SessionWrapper tmpSession = GetSessionByUniquePlayerId(uniqueId);
|
||||
|
||||
if (tmpSession.sessionData.get() && tmpSession.playerData.get())
|
||||
if (tmpSession.sessionData && tmpSession.playerData)
|
||||
retVal = true;
|
||||
|
||||
return retVal;
|
||||
|
||||
Reference in New Issue
Block a user