mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-17 11:28:16 +00:00
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:
parent
1ebf1b16f8
commit
0611079def
@ -18,6 +18,9 @@ Version 1.2-svn
|
||||
* multiplayer
|
||||
* game management
|
||||
* 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:
|
||||
* campaigns:
|
||||
|
@ -336,10 +336,17 @@ LEVEL_RESULT play_game(display& disp, game_state& state, const config& game_conf
|
||||
|
||||
if(io_type == IO_CLIENT) {
|
||||
config cfg;
|
||||
|
||||
std::string msg;
|
||||
if (state.scenario.empty())
|
||||
msg = _("Receiving data...");
|
||||
else
|
||||
msg = _("Downloading next scenario...");
|
||||
|
||||
do {
|
||||
cfg.clear();
|
||||
network::connection data_res = gui::network_receive_dialog(disp,
|
||||
_("Downloading next level..."), cfg);
|
||||
msg, cfg);
|
||||
if(!data_res)
|
||||
throw network::error(_("Connection timed out"));
|
||||
} while(cfg.child("next_scenario") == NULL &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user