running astyle

This commit is contained in:
Albert Medela
2016-07-07 20:52:44 +02:00
parent 55174a71a7
commit 417d9a5bd2
2 changed files with 16 additions and 16 deletions
+3 -3
View File
@@ -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);
} }