- bugfix to cancel properly and detect if we are in mod center mode or not

This commit is contained in:
Mark Vejvoda 2012-10-15 22:51:40 +00:00
parent fa0551c175
commit bd24409e20
1 changed files with 4 additions and 4 deletions

View File

@ -1094,7 +1094,7 @@ void MenuStateConnectedGame::mouseClick(int x, int y, MouseButton mouseButton){
soundRenderer.playFx(coreData.getClickSoundA());
ftpMessageBox.setEnabled(false);
if(button == 0 || button == 1) {
if(button == 0 || (button == 1 && ftpMessageBox.getButtonCount() == 3)) {
if(ftpMissingDataType == ftpmsg_MissingMap) {
getMissingMapFromFTPServerInProgress = true;
@ -1113,7 +1113,7 @@ void MenuStateConnectedGame::mouseClick(int x, int y, MouseButton mouseButton){
}
if(ftpClientThread != NULL) {
if(button == 0) {
if(button == 0 && ftpMessageBox.getButtonCount() == 3) {
string mapName = getMissingMapFromFTPServer;
string mapURL = mapCacheList[mapName].url;
@ -1148,7 +1148,7 @@ void MenuStateConnectedGame::mouseClick(int x, int y, MouseButton mouseButton){
}
if(ftpClientThread != NULL) {
if(button == 0) {
if(button == 0 && ftpMessageBox.getButtonCount() == 3) {
string tilesetName = getMissingTilesetFromFTPServer;
string tilesetURL = tilesetCacheList[tilesetName].url;
@ -1183,7 +1183,7 @@ void MenuStateConnectedGame::mouseClick(int x, int y, MouseButton mouseButton){
}
if(ftpClientThread != NULL) {
if(button == 0) {
if(button == 0 && ftpMessageBox.getButtonCount() == 3) {
string techName = getMissingTechtreeFromFTPServer;
string techURL = techCacheList[techName].url;