From 9221d39e6e9ed15ad50ca16bbddb4e03236ad7f0 Mon Sep 17 00:00:00 2001 From: Benau Date: Sun, 12 Sep 2021 08:24:01 +0800 Subject: [PATCH] Don't show kart rank in free for all battle, fix #4607 --- src/states_screens/race_result_gui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/states_screens/race_result_gui.cpp b/src/states_screens/race_result_gui.cpp index 424542bad..53900dc77 100644 --- a/src/states_screens/race_result_gui.cpp +++ b/src/states_screens/race_result_gui.cpp @@ -1345,7 +1345,9 @@ void RaceResultGUI::unload() : video::SColor(255, 255, 255, 255); unsigned int current_x = x; - if (!ri->m_finish_time_string.empty() && RaceManager::get()->getNumberOfKarts() >= 10) + if (RaceManager::get()->getMinorMode() != RaceManager::MINOR_MODE_FREE_FOR_ALL && + !ri->m_finish_time_string.empty() && + RaceManager::get()->getNumberOfKarts() >= 10) { int pos_rank_width = m_font->getDimension(core::stringw(n + 1).c_str()).Width; core::recti pos_rank(current_x, y, pos_rank_width, m_distance_between_rows);