running astyle
This commit is contained in:
@@ -396,7 +396,7 @@ ServerLobbyThread::CloseSession(boost::shared_ptr<SessionData> session)
|
|||||||
m_sessionManager.RemoveSession(session->GetId());
|
m_sessionManager.RemoveSession(session->GetId());
|
||||||
m_gameSessionManager.RemoveSession(session->GetId());
|
m_gameSessionManager.RemoveSession(session->GetId());
|
||||||
|
|
||||||
if (session->GetPlayerData()){
|
if (session->GetPlayerData()) {
|
||||||
if (session->GetPlayerData()->GetRights() == PLAYER_RIGHTS_GUEST) {
|
if (session->GetPlayerData()->GetRights() == PLAYER_RIGHTS_GUEST) {
|
||||||
DecrementGuests();
|
DecrementGuests();
|
||||||
}
|
}
|
||||||
@@ -1071,7 +1071,7 @@ ServerLobbyThread::HandleNetPacketInit(boost::shared_ptr<SessionData> session, c
|
|||||||
noAuth = true;
|
noAuth = true;
|
||||||
}
|
}
|
||||||
// @XXX: check if a guest session with same ip is already connected - decline if true
|
// @XXX: check if a guest session with same ip is already connected - decline if true
|
||||||
if(m_sessionManager.IsGuestConnectedMultiple(session->GetClientAddr())){
|
if(m_sessionManager.IsGuestConnectedMultiple(session->GetClientAddr())) {
|
||||||
//LOG_ERROR("Guest with IP " << session->GetClientAddr() << " already connected! Decline!");
|
//LOG_ERROR("Guest with IP " << session->GetClientAddr() << " already connected! Decline!");
|
||||||
SessionError(session, ERR_NET_FULL_GUESTS);
|
SessionError(session, ERR_NET_FULL_GUESTS);
|
||||||
return;
|
return;
|
||||||
@@ -2398,7 +2398,7 @@ ServerLobbyThread::GetRejoinGameIdForPlayer(const std::string &playerName, const
|
|||||||
}
|
}
|
||||||
|
|
||||||
// LG: Handle guests_ variable. Remove in production to access variable itself
|
// LG: Handle guests_ variable. Remove in production to access variable itself
|
||||||
void ServerLobbyThread::DecrementGuests(){
|
void ServerLobbyThread::DecrementGuests() {
|
||||||
this->guests_.fetch_sub(1);
|
this->guests_.fetch_sub(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user