From d7520dc40be8a317c5e43697470e06c746b93b89 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Wed, 29 Dec 2010 08:16:26 +0000 Subject: [PATCH] - added a system message when players successfully download a missing map --- source/glest_game/menu/menu_state_connected_game.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/glest_game/menu/menu_state_connected_game.cpp b/source/glest_game/menu/menu_state_connected_game.cpp index 7c363a1da..9672be897 100644 --- a/source/glest_game/menu/menu_state_connected_game.cpp +++ b/source/glest_game/menu/menu_state_connected_game.cpp @@ -1576,6 +1576,16 @@ void MenuStateConnectedGame::FTPClient_CallbackEvent(string mapFilename, FTP_Cli getMissingMapFromFTPServerInProgress = false; printf("Got FTP Callback for [%s] result = %d\n",mapFilename.c_str(),result); + + if(result == ftp_crt_SUCCESS) { + NetworkManager &networkManager= NetworkManager::getInstance(); + ClientInterface* clientInterface= networkManager.getClientInterface(); + const GameSettings *gameSettings = clientInterface->getGameSettings(); + + char szMsg[1024]=""; + sprintf(szMsg,"Player: %s SUCCESSFULLY downloaded the map: %s",getHumanPlayerName().c_str(),gameSettings->getMap().c_str()); + clientInterface->sendTextMessage(szMsg,-1, true); + } } }}//end namespace