From 1eb2aed0bf79888b9560f1a7b07ac1a79725eca0 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Mon, 6 Sep 2010 11:11:38 +0000 Subject: [PATCH] Fixed skipping of the first result table (see bug 3059531). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5902 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/states_screens/race_result_gui.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/states_screens/race_result_gui.cpp b/src/states_screens/race_result_gui.cpp index 3efbc1d16..7ddf8efa5 100644 --- a/src/states_screens/race_result_gui.cpp +++ b/src/states_screens/race_result_gui.cpp @@ -408,6 +408,13 @@ void RaceResultGUI::renderGlobal(float dt) case RR_RACE_RESULT: if(m_timer > m_time_overall_scroll) { + // Make sure that all lines are aligned to the left + // (in case that the animation was skipped). + for(unsigned int i=0; im_x_pos = (float)m_leftmost_column; + } if(race_manager->getMajorMode()!=RaceManager::MAJOR_MODE_GRAND_PRIX) { m_animation_state = RR_WAIT_TILL_END; @@ -510,7 +517,7 @@ void RaceResultGUI::renderGlobal(float dt) break; } // switch displayOneEntry((unsigned int)x, (unsigned int)y, i, true); - } + } // for i } // renderGlobal //-----------------------------------------------------------------------------