bugfix to change title when joining in progress game

This commit is contained in:
Mark Vejvoda 2013-06-05 20:25:14 +00:00
parent 8a3cf2f956
commit 09b6c1c1b1
1 changed files with 5 additions and 1 deletions

View File

@ -2604,9 +2604,13 @@ void MenuStateConnectedGame::update() {
Chrono chrono;
if(SystemFlags::getSystemSettingType(SystemFlags::debugPerformance).enabled) chrono.start();
ClientInterface* clientInterface= NetworkManager::getInstance().getClientInterface();
Lang &lang= Lang::getInstance();
ClientInterface *clientInterface= NetworkManager::getInstance().getClientInterface();
string newLabelConnectionInfo = lang.get("WaitingHost");
if(clientInterface != NULL && clientInterface->getJoinGameInProgress() == true) {
newLabelConnectionInfo = lang.get("MGGameStatus2");
}
// Test progress bar
//MutexSafeWrapper safeMutexFTPProgress((ftpClientThread != NULL ? ftpClientThread->getProgressMutex() : NULL),string(__FILE__) + "_" + intToStr(__LINE__));
//fileFTPProgressList["test"] = pair<int,string>(difftime(time(NULL),lastNetworkSendPing) * 20,"test file 123");