mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 04:02:30 +01:00
- 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 ||
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user