clients can choose their slots

This commit is contained in:
Titus Tscharntke
2010-04-30 01:08:29 +00:00
parent 140a304541
commit 0687a56e27
8 changed files with 163 additions and 30 deletions

View File

@@ -366,7 +366,15 @@ void ClientInterface::updateLobby()
}
}
break;
case nmtPlayerIndexMessage:
{
PlayerIndexMessage playerIndexMessage(-1);
if(receiveMessage(&playerIndexMessage))
{
playerIndex= playerIndexMessage.getPlayerIndex();
}
}
break;
default:
{
string sErr = string(__FILE__) + "::" + string(__FUNCTION__) + " Unexpected network message: " + intToStr(networkMessageType);