diff --git a/src/game_initialization/create_engine.cpp b/src/game_initialization/create_engine.cpp index e9171cc99788..8f14ad7ac9f6 100644 --- a/src/game_initialization/create_engine.cpp +++ b/src/game_initialization/create_engine.cpp @@ -725,13 +725,17 @@ std::vector create_engine::levels_menu_item_names() const } std::vector create_engine::extras_menu_item_names( - const MP_EXTRA extra_type) const + const MP_EXTRA extra_type, bool escape_markup) const { std::vector names; BOOST_FOREACH(extras_metadata_ptr extra, get_const_extras_by_type(extra_type)) { - names.push_back(font::NULL_MARKUP + extra->name); + if (escape_markup) { + names.push_back(font::NULL_MARKUP + extra->name); + } else { + names.push_back(extra->name); + } } return names; diff --git a/src/game_initialization/create_engine.hpp b/src/game_initialization/create_engine.hpp index 1f3d9c3a0269..c63f518b8486 100644 --- a/src/game_initialization/create_engine.hpp +++ b/src/game_initialization/create_engine.hpp @@ -222,7 +222,7 @@ class create_engine std::vector levels_menu_item_names() const; std::vector extras_menu_item_names( - const MP_EXTRA extra_type) const; + const MP_EXTRA extra_type, bool escape_markup = true) const; level& current_level() const; const extras_metadata& current_extra(const MP_EXTRA extra_type) const; diff --git a/src/gui/dialogs/campaign_settings.cpp b/src/gui/dialogs/campaign_settings.cpp index 08094921ba3d..bcdcf0772fc6 100644 --- a/src/gui/dialogs/campaign_settings.cpp +++ b/src/gui/dialogs/campaign_settings.cpp @@ -102,7 +102,7 @@ void tcampaign_settings::update_lists(twindow& window) era_list.clear(); if (engine_.current_level().allow_era_choice()) { - BOOST_FOREACH(std::string era, engine_.extras_menu_item_names(ng::create_engine::ERA)) { + BOOST_FOREACH(std::string era, engine_.extras_menu_item_names(ng::create_engine::ERA, false)) { std::map row; string_map column;