Skip to content

Commit

Permalink
MP/Staging and Join: display game name (resolves #3508)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Dec 24, 2020
1 parent 514a4f7 commit 63e161f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/gui/dialogs/multiplayer/mp_join_game.cpp
Expand Up @@ -238,7 +238,8 @@ void mp_join_game::pre_show(window& window)
// Set title
//
label& title = find_widget<label>(&window, "title", false);
title.set_label((formatter() << title.get_label() << " " << font::unicode_em_dash << " " << get_scenario()["name"].t_str()).str());
// FIXME: very hacky way to get the game name...
title.set_label((formatter() << level_.child("multiplayer")["scenario"] << " " << font::unicode_em_dash << " " << get_scenario()["name"].t_str()).str());

//
// Set up sides list
Expand Down
2 changes: 1 addition & 1 deletion src/gui/dialogs/multiplayer/mp_staging.cpp
Expand Up @@ -80,7 +80,7 @@ void mp_staging::pre_show(window& window)
// Set title and status widget states
//
label& title = find_widget<label>(&window, "title", false);
title.set_label((formatter() << title.get_label() << " " << font::unicode_em_dash << " " << connect_engine_.scenario()["name"].t_str()).str());
title.set_label((formatter() << connect_engine_.params().name << " " << font::unicode_em_dash << " " << connect_engine_.scenario()["name"].t_str()).str());

update_status_label_and_buttons();

Expand Down

0 comments on commit 63e161f

Please sign in to comment.