- on game start close non authenticated players who are connected

This commit is contained in:
Mark Vejvoda 2013-01-12 00:09:25 +00:00
parent 0f34a886c6
commit 9c14ee0aec
1 changed files with 2 additions and 1 deletions

View File

@ -3818,7 +3818,8 @@ void MenuStateCustomGame::closeUnusedSlots(){
if(listBoxControls[i].getSelectedItemIndex() == ctNetwork ||
listBoxControls[i].getSelectedItemIndex() == ctNetworkUnassigned) {
if(serverInterface->getSlot(i) == NULL ||
serverInterface->getSlot(i)->isConnected() == false) {
serverInterface->getSlot(i)->isConnected() == false ||
serverInterface->getSlot(i)->getConnectHasHandshaked() == false) {
//printf("Closed A [%d] [%s]\n",i,labelPlayerNames[i].getText().c_str());
listBoxControls[i].setSelectedItemIndex(ctClosed);