mirror of
https://github.com/glest/glest-source.git
synced 2025-08-25 17:20:43 +02:00
- added a system message when players successfully download a missing map
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user