- on game start close non authenticated players who are connected
This commit is contained in:
parent
0f34a886c6
commit
9c14ee0aec
|
@ -3818,7 +3818,8 @@ void MenuStateCustomGame::closeUnusedSlots(){
|
||||||
if(listBoxControls[i].getSelectedItemIndex() == ctNetwork ||
|
if(listBoxControls[i].getSelectedItemIndex() == ctNetwork ||
|
||||||
listBoxControls[i].getSelectedItemIndex() == ctNetworkUnassigned) {
|
listBoxControls[i].getSelectedItemIndex() == ctNetworkUnassigned) {
|
||||||
if(serverInterface->getSlot(i) == NULL ||
|
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());
|
//printf("Closed A [%d] [%s]\n",i,labelPlayerNames[i].getText().c_str());
|
||||||
|
|
||||||
listBoxControls[i].setSelectedItemIndex(ctClosed);
|
listBoxControls[i].setSelectedItemIndex(ctClosed);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user