better handling of attention sound / errormessages ...

This commit is contained in:
Titus Tscharntke
2010-05-17 20:05:31 +00:00
parent 8be87ee362
commit 70383f2a30

View File

@@ -64,7 +64,7 @@ MenuStateCustomGame::MenuStateCustomGame(Program *program, MainMenu *mainMenu, b
lastMasterserverPublishing = 0; lastMasterserverPublishing = 0;
soundConnectionCount=0; soundConnectionCount=0;
mainMessageBox.init(lang.get("Ok"),lang.get("Return")); mainMessageBox.init(lang.get("Ok"));
mainMessageBox.setEnabled(false); mainMessageBox.setEnabled(false);
mainMessageBoxState=0; mainMessageBoxState=0;
@@ -266,10 +266,6 @@ void MenuStateCustomGame::mouseClick(int x, int y, MouseButton mouseButton){
{ {
mainMessageBox.setEnabled(false); mainMessageBox.setEnabled(false);
} }
else if(button==2)
{
returnToParentMenu();
}
} }
} }
else if(buttonReturn.mouseClick(x,y)){ else if(buttonReturn.mouseClick(x,y)){
@@ -534,7 +530,7 @@ void MenuStateCustomGame::update()
{ {
masterServererErrorToShow=lang.get("wrong router setup"); masterServererErrorToShow=lang.get("wrong router setup");
} }
showMasterserverError=true; showMasterserverError=false;
listBoxPublishServer.setSelectedItemIndex(1); listBoxPublishServer.setSelectedItemIndex(1);
mainMessageBoxState=1; mainMessageBoxState=1;
showMessageBox( masterServererErrorToShow, lang.get("ErrorFromMasterserver"), false); showMessageBox( masterServererErrorToShow, lang.get("ErrorFromMasterserver"), false);
@@ -609,6 +605,7 @@ void MenuStateCustomGame::update()
//printf("FYI we have at least 1 client connected, slot = %d'\n",i); //printf("FYI we have at least 1 client connected, slot = %d'\n",i);
haveAtLeastOneNetworkClientConnected = true; haveAtLeastOneNetworkClientConnected = true;
if(connectionSlot->getName()!="")
currentConnectionCount++; currentConnectionCount++;
//SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s] B - ctNetwork\n",__FILE__,__FUNCTION__); //SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s] B - ctNetwork\n",__FILE__,__FUNCTION__);