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
|
* 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:
|
||||||
|
@ -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 &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user