From 5e5026ea680e3eabbcf4b65b769638d4c84aad38 Mon Sep 17 00:00:00 2001 From: Benau Date: Mon, 9 Dec 2019 14:05:50 +0800 Subject: [PATCH] Adjust soccer result screen for new data --- src/states_screens/race_result_gui.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/states_screens/race_result_gui.cpp b/src/states_screens/race_result_gui.cpp index da109cbe6..68e3d943b 100644 --- a/src/states_screens/race_result_gui.cpp +++ b/src/states_screens/race_result_gui.cpp @@ -1428,6 +1428,8 @@ void RaceResultGUI::displayCTFResults() const bool own_goal = !(scorers.at(i).m_correct_goal); result_text = scorers.at(i).m_player; + if (scorers.at(i).m_handicap_level == HANDICAP_MEDIUM) + result_text = _("%s (handicapped)", result_text); if (own_goal) { @@ -1435,6 +1437,11 @@ void RaceResultGUI::displayCTFResults() //I18N: indicates a player that scored in their own goal in result screen result_text.append(_("(Own Goal)")); } + if (!scorers.at(i).m_country_code.empty()) + { + result_text += " "; + result_text += StringUtils::getCountryFlag(scorers.at(i).m_country_code); + } result_text.append(" "); result_text.append(StringUtils::timeToString(scorers.at(i).m_time).c_str()); @@ -1479,12 +1486,20 @@ void RaceResultGUI::displayCTFResults() const bool own_goal = !(scorers.at(i).m_correct_goal); result_text = scorers.at(i).m_player; + if (scorers.at(i).m_handicap_level == HANDICAP_MEDIUM) + result_text = _("%s (handicapped)", result_text); if (own_goal) { result_text.append(" "); + //I18N: indicates a player that scored in their own goal in result screen result_text.append(_("(Own Goal)")); } + if (!scorers.at(i).m_country_code.empty()) + { + result_text += " "; + result_text += StringUtils::getCountryFlag(scorers.at(i).m_country_code); + } result_text.append(" "); result_text.append(StringUtils::timeToString(scorers.at(i).m_time).c_str());