Small cleanup of end credits display for 238d70ee22

This commit is contained in:
Celtic Minstrel 2017-05-22 03:17:03 -04:00
parent 89e6aeee16
commit bdb16867ee

View file

@ -84,14 +84,13 @@ void end_credits::pre_show(window& window)
const config& credits_config = about::get_about_config();
// First, parse all the toplevel [about] tags
parse_about_tags(credits_config, ss);
// Next, parse all the grouped [about] tags (usually by campaign)
for(const auto& group : credits_config.child_range("credits_group")) {
std::stringstream& group_stream = (group["id"] == focus_on_) ? focus_ss : ss;
group_stream << "\n" << "<span size='xx-large'>" << group["title"] << "</span>" << "\n";
group_stream << "\n";
if(group.has_attribute("title")) {
group_stream << "<span size='xx-large'>" << group["title"] << "</span>" << "\n";
}
parse_about_tags(group, group_stream);
}