trying to make selection of control in headless more comfortable

This commit is contained in:
Titus Tscharntke 2012-10-06 16:09:49 +00:00
parent f38f7d593a
commit a39f262065
1 changed files with 4 additions and 1 deletions

View File

@ -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);