Make it compile. Network mode not working currently.

This commit is contained in:
lotodore committed 2007-08-19 20:58:57 +00:00
1 parent 260182f570
commit 1d1d6480a9
8 files changed
+19 -16

No files matched your search

+2 -2
View File
@@ -440,11 +440,11 @@ ClientStateWaitSession::InternalProcess(ClientThread &client, boost::shared_ptr<
// Everything is fine - we are in the lobby.
NetPacketInitAck::Data initAckData;
packet->ToNetPacketInitAck()->GetData(initAckData);
client.SetGuiPlayerId(initAckData.yourPlayerUniqueId);
client.SetGuiPlayerId(initAckData.playerId);
// Player number is 0 on init. Will be set when the game starts.
boost::shared_ptr<PlayerData> playerData(
new PlayerData(initAckData.yourPlayerUniqueId, 0, PLAYER_TYPE_HUMAN, PLAYER_RIGHTS_NORMAL));
new PlayerData(initAckData.playerId, 0, PLAYER_TYPE_HUMAN, PLAYER_RIGHTS_NORMAL));
playerData->SetName(context.GetPlayerName());
client.AddPlayerData(playerData);