trying to make selection of control in headless more comfortable
This commit is contained in:
parent
f38f7d593a
commit
a39f262065
|
@ -1205,7 +1205,7 @@ void MenuStateConnectedGame::mouseClickAdmin(int x, int y, MouseButton mouseButt
|
|||
broadcastServerSettingsDelayTimer=time(NULL);
|
||||
}
|
||||
|
||||
//ensure thet only 1 human player is present
|
||||
//ensure that only 1 human player is present
|
||||
if(clientInterface != NULL && clientInterface->getGameSettings() != NULL &&
|
||||
clientInterface->getGameSettings()->getStartLocationIndex(clientInterface->getGameSettings()->getThisFactionIndex()) != i &&
|
||||
listBoxControls[i].mouseClick(x, y)) {
|
||||
|
@ -1215,6 +1215,9 @@ void MenuStateConnectedGame::mouseClickAdmin(int x, int y, MouseButton mouseButt
|
|||
if(listBoxControls[i].getSelectedItemIndex() == ctNetworkUnassigned) {
|
||||
listBoxControls[i].mouseClick(x, y);
|
||||
}
|
||||
if(isHeadlessAdmin==true && listBoxControls[i].getSelectedItemIndex() == ctHuman){
|
||||
listBoxControls[i].mouseClick(x, y);
|
||||
}
|
||||
|
||||
updateResourceMultiplier(i);
|
||||
|
||||
|
|
Loading…
Reference in New Issue