- bugfix to cancel properly and detect if we are in mod center mode or not
This commit is contained in:
parent
fa0551c175
commit
bd24409e20
|
@ -1094,7 +1094,7 @@ void MenuStateConnectedGame::mouseClick(int x, int y, MouseButton mouseButton){
|
||||||
soundRenderer.playFx(coreData.getClickSoundA());
|
soundRenderer.playFx(coreData.getClickSoundA());
|
||||||
ftpMessageBox.setEnabled(false);
|
ftpMessageBox.setEnabled(false);
|
||||||
|
|
||||||
if(button == 0 || button == 1) {
|
if(button == 0 || (button == 1 && ftpMessageBox.getButtonCount() == 3)) {
|
||||||
if(ftpMissingDataType == ftpmsg_MissingMap) {
|
if(ftpMissingDataType == ftpmsg_MissingMap) {
|
||||||
getMissingMapFromFTPServerInProgress = true;
|
getMissingMapFromFTPServerInProgress = true;
|
||||||
|
|
||||||
|
@ -1113,7 +1113,7 @@ void MenuStateConnectedGame::mouseClick(int x, int y, MouseButton mouseButton){
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ftpClientThread != NULL) {
|
if(ftpClientThread != NULL) {
|
||||||
if(button == 0) {
|
if(button == 0 && ftpMessageBox.getButtonCount() == 3) {
|
||||||
string mapName = getMissingMapFromFTPServer;
|
string mapName = getMissingMapFromFTPServer;
|
||||||
string mapURL = mapCacheList[mapName].url;
|
string mapURL = mapCacheList[mapName].url;
|
||||||
|
|
||||||
|
@ -1148,7 +1148,7 @@ void MenuStateConnectedGame::mouseClick(int x, int y, MouseButton mouseButton){
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ftpClientThread != NULL) {
|
if(ftpClientThread != NULL) {
|
||||||
if(button == 0) {
|
if(button == 0 && ftpMessageBox.getButtonCount() == 3) {
|
||||||
string tilesetName = getMissingTilesetFromFTPServer;
|
string tilesetName = getMissingTilesetFromFTPServer;
|
||||||
string tilesetURL = tilesetCacheList[tilesetName].url;
|
string tilesetURL = tilesetCacheList[tilesetName].url;
|
||||||
|
|
||||||
|
@ -1183,7 +1183,7 @@ void MenuStateConnectedGame::mouseClick(int x, int y, MouseButton mouseButton){
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ftpClientThread != NULL) {
|
if(ftpClientThread != NULL) {
|
||||||
if(button == 0) {
|
if(button == 0 && ftpMessageBox.getButtonCount() == 3) {
|
||||||
string techName = getMissingTechtreeFromFTPServer;
|
string techName = getMissingTechtreeFromFTPServer;
|
||||||
string techURL = techCacheList[techName].url;
|
string techURL = techCacheList[techName].url;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user