Some work on protocol buffer details.

This commit is contained in:
lotodore
2012-09-23 23:19:53 +02:00
parent e16d4908bd
commit f0ee0af6ec
13 changed files with 1103 additions and 1096 deletions
+2 -2
View File
@@ -1172,7 +1172,7 @@ ServerLobbyThread::HandleNetPacketRetrievePlayerInfo(boost::shared_ptr<SessionDa
data->set_playername(tmpPlayer->GetName());
data->set_ishuman(tmpPlayer->GetType() == PLAYER_TYPE_HUMAN);
data->set_playerrights(static_cast<PlayerInfoRights>(tmpPlayer->GetRights()));
data->set_playerrights(static_cast<NetPlayerInfoRights>(tmpPlayer->GetRights()));
if (!tmpPlayer->GetCountry().empty()) {
data->set_countrycode(tmpPlayer->GetCountry());
}
@@ -2119,7 +2119,7 @@ ServerLobbyThread::CreateNetPacketGameListNew(const ServerGame &game)
GameListNewMessage *netGameList = packet->GetMsg()->mutable_gamelistnewmessage();
netGameList->set_gameid(game.GetId());
netGameList->set_adminplayerid(game.GetAdminPlayerId());
netGameList->set_gamemode(game.IsRunning() ? gameStarted : gameCreated);
netGameList->set_gamemode(game.IsRunning() ? netGameStarted : netGameCreated);
NetPacket::SetGameData(game.GetGameData(), *netGameList->mutable_gameinfo());
netGameList->mutable_gameinfo()->set_gamename(game.GetName());
netGameList->set_isprivate(game.IsPasswordProtected());