Skip to content

Commit

Permalink
improve side drop message fixes #2820
Browse files Browse the repository at this point in the history
(cherry-picked from commit 06ebceb)
  • Loading branch information
gfgtdf committed Oct 7, 2018
1 parent ba3b79a commit 9888bd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/playturn.cpp
Expand Up @@ -285,7 +285,8 @@ turn_info::PROCESS_DATA_RESULT turn_info::process_network_data(const config& cfg
options.emplace_back(_("Save and abort game"));

t_vars["player"] = tm.current_player();
const std::string gettext_message = VGETTEXT("$player has left the game. What do you want to do?", t_vars);
t_vars["side_drop"] = std::to_string(side_drop);
const std::string gettext_message = VGETTEXT("$player who controlled side $side_drop has left the game. What do you want to do?", t_vars);
gui2::dialogs::simple_item_selector dlg("", gettext_message, options);
dlg.set_single_button(true);
dlg.show();
Expand Down

0 comments on commit 9888bd2

Please sign in to comment.