Revert ProtoBuf to version 2.6.1 and running astyle
This commit is contained in:
@@ -1169,9 +1169,9 @@ ServerGame::GetNextGameNum()
|
|||||||
void
|
void
|
||||||
ServerGame::AddPlayerToNumJoinsPerPlayer(const std::string &playerName)
|
ServerGame::AddPlayerToNumJoinsPerPlayer(const std::string &playerName)
|
||||||
{
|
{
|
||||||
if(m_numjoinsp.find(playerName) != m_numjoinsp.end()){
|
if(m_numjoinsp.find(playerName) != m_numjoinsp.end()) {
|
||||||
m_numjoinsp[playerName] = m_numjoinsp[playerName] + 1;
|
m_numjoinsp[playerName] = m_numjoinsp[playerName] + 1;
|
||||||
}else{
|
} else {
|
||||||
m_numjoinsp[playerName] = 1;
|
m_numjoinsp[playerName] = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1180,7 +1180,7 @@ int
|
|||||||
ServerGame::GetNumJoinsPerPlayer(const std::string &playerName)
|
ServerGame::GetNumJoinsPerPlayer(const std::string &playerName)
|
||||||
{
|
{
|
||||||
int num = 0;
|
int num = 0;
|
||||||
if(m_numjoinsp.find(playerName) != m_numjoinsp.end()){
|
if(m_numjoinsp.find(playerName) != m_numjoinsp.end()) {
|
||||||
num = m_numjoinsp[playerName];
|
num = m_numjoinsp[playerName];
|
||||||
}
|
}
|
||||||
return num;
|
return num;
|
||||||
|
|||||||
@@ -262,7 +262,7 @@ SessionManager::IsGuestConnectedMultiple(const std::string &clientAddress) const
|
|||||||
//if(tmpPlayer && tmpPlayer->GetRights() == PLAYER_RIGHTS_GUEST && i->second->GetClientAddr() == clientAddress){
|
//if(tmpPlayer && tmpPlayer->GetRights() == PLAYER_RIGHTS_GUEST && i->second->GetClientAddr() == clientAddress){
|
||||||
// @XXX: debug:
|
// @XXX: debug:
|
||||||
// if(tmpPlayer && tmpPlayer->GetRights() == PLAYER_RIGHTS_NORMAL && i->second->GetClientAddr() == clientAddress){
|
// if(tmpPlayer && tmpPlayer->GetRights() == PLAYER_RIGHTS_NORMAL && i->second->GetClientAddr() == clientAddress){
|
||||||
if(tmpPlayer && tmpPlayer->GetRights() == PLAYER_RIGHTS_GUEST && i->second->GetClientAddr() == clientAddress){
|
if(tmpPlayer && tmpPlayer->GetRights() == PLAYER_RIGHTS_GUEST && i->second->GetClientAddr() == clientAddress) {
|
||||||
retVal = true;
|
retVal = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
+3084
-1900
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user