diff --git a/src/states_screens/race_result_gui.cpp b/src/states_screens/race_result_gui.cpp index a58c109e9..60b11b001 100644 --- a/src/states_screens/race_result_gui.cpp +++ b/src/states_screens/race_result_gui.cpp @@ -886,13 +886,9 @@ void RaceResultGUI::displayCTFResults() } // filterActions //----------------------------------------------------------------------------- - /** Called once a frame, this now triggers the rendering of the actual - * race result gui. - */ + /** Called once a frame */ void RaceResultGUI::onUpdate(float dt) { - renderGlobal(dt); - // When the finish sound has been played, start the race over music. if (m_finish_sound && m_finish_sound->getStatus() != SFXBase::SFX_PLAYING) { @@ -909,6 +905,16 @@ void RaceResultGUI::displayCTFResults() } } } // onUpdate + + //----------------------------------------------------------------------------- + /** Called once a frame, this now triggers the rendering of the actual + * race result gui. + */ + void RaceResultGUI::onDraw(float dt) + { + renderGlobal(dt); + } // onDraw + //----------------------------------------------------------------------------- /** Render all global parts of the race gui, i.e. things that are only diff --git a/src/states_screens/race_result_gui.hpp b/src/states_screens/race_result_gui.hpp index 02e9c3dbf..2881f40be 100644 --- a/src/states_screens/race_result_gui.hpp +++ b/src/states_screens/race_result_gui.hpp @@ -230,6 +230,7 @@ public: virtual void renderPlayerView(const Camera *camera, float dt) OVERRIDE {} virtual void onUpdate(float dt) OVERRIDE; + virtual void onDraw(float dt) OVERRIDE; /** No more messages need to be displayed, but the function might still be * called (e.g. 'new lap' message if the end controller is used for more