From 0e2e98071b7b13c44b437e02952eda843d0ed2fc Mon Sep 17 00:00:00 2001 From: hikerstk Date: Thu, 31 Mar 2011 23:06:12 +0000 Subject: [PATCH] Fixed rank display if more than 9 karts were used. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8156 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/states_screens/minimal_race_gui.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/states_screens/minimal_race_gui.cpp b/src/states_screens/minimal_race_gui.cpp index 9fe41aac8..f05eff563 100644 --- a/src/states_screens/minimal_race_gui.cpp +++ b/src/states_screens/minimal_race_gui.cpp @@ -126,7 +126,10 @@ MinimalRaceGUI::MinimalRaceGUI() font->setScale(m_font_scale); m_lap_width = font->getDimension(m_string_lap.c_str()).Width; m_timer_width = font->getDimension(L"99:99:99").Width; - m_rank_width = font->getDimension(L"9/9").Width; + if(race_manager->getNumberOfKarts()>9) + m_rank_width = font->getDimension(L"99/99").Width; + else + m_rank_width = font->getDimension(L"9/9").Width; int w; if (race_manager->getMinorMode()==RaceManager::MINOR_MODE_FOLLOW_LEADER ||