mirror of
https://github.com/glest/glest-source.git
synced 2025-09-01 04:01:47 +02:00
You see an error message now if you cannot connect to a server and irc is not quitted.
This commit is contained in:
@@ -434,14 +434,14 @@ void MenuStateMasterserver::mouseClick(int x, int y, MouseButton mouseButton){
|
|||||||
soundRenderer.playFx(coreData.getClickSoundB());
|
soundRenderer.playFx(coreData.getClickSoundB());
|
||||||
string connectServerIP = serverLines[i]->getMasterServerInfo()->getIpAddress();
|
string connectServerIP = serverLines[i]->getMasterServerInfo()->getIpAddress();
|
||||||
int connectServerPort = serverLines[i]->getMasterServerInfo()->getExternalConnectPort();
|
int connectServerPort = serverLines[i]->getMasterServerInfo()->getExternalConnectPort();
|
||||||
connectToServer(connectServerIP,connectServerPort);
|
bool connected=connectToServer(connectServerIP,connectServerPort);
|
||||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
safeMutex.ReleaseLock();
|
safeMutex.ReleaseLock();
|
||||||
|
if(connected){
|
||||||
cleanup();
|
cleanup();
|
||||||
|
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
mainMenu->setState(new MenuStateConnectedGame(program, mainMenu,jmMasterserver));
|
||||||
mainMenu->setState(new MenuStateConnectedGame(program, mainMenu,jmMasterserver));
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user