From 09b6c1c1b1dbcdf8d70b497c04eb834b59ad787a Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Wed, 5 Jun 2013 20:25:14 +0000 Subject: [PATCH] bugfix to change title when joining in progress game --- source/glest_game/menu/menu_state_connected_game.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/glest_game/menu/menu_state_connected_game.cpp b/source/glest_game/menu/menu_state_connected_game.cpp index 8441a69ea..19f1accc7 100644 --- a/source/glest_game/menu/menu_state_connected_game.cpp +++ b/source/glest_game/menu/menu_state_connected_game.cpp @@ -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(difftime(time(NULL),lastNetworkSendPing) * 20,"test file 123");