replace "Downloading next level..." by "Receiving data..."

...when scenario don't have next_scenario and replace
"Downloading next level..." by "Downloading next scenario..."
This commit is contained in:
Serge Martin 2007-01-02 17:06:05 +00:00
parent 1ebf1b16f8
commit 0611079def
2 changed files with 11 additions and 1 deletions

View File

@ -18,6 +18,9 @@ Version 1.2-svn
* multiplayer * multiplayer
* game management * game management
* fixed controler change not sended to all client (bug #8138) * fixed controler change not sended to all client (bug #8138)
* replace "Downloading next level..." by "Receiving data..."
when scenario don't have next_scenario and replace
"Downloading next level..." by "Downloading next scenario..."
Version 1.2: Version 1.2:
* campaigns: * campaigns:

View File

@ -336,10 +336,17 @@ LEVEL_RESULT play_game(display& disp, game_state& state, const config& game_conf
if(io_type == IO_CLIENT) { if(io_type == IO_CLIENT) {
config cfg; config cfg;
std::string msg;
if (state.scenario.empty())
msg = _("Receiving data...");
else
msg = _("Downloading next scenario...");
do { do {
cfg.clear(); cfg.clear();
network::connection data_res = gui::network_receive_dialog(disp, network::connection data_res = gui::network_receive_dialog(disp,
_("Downloading next level..."), cfg); msg, cfg);
if(!data_res) if(!data_res)
throw network::error(_("Connection timed out")); throw network::error(_("Connection timed out"));
} while(cfg.child("next_scenario") == NULL && } while(cfg.child("next_scenario") == NULL &&