Fixed race results that were drawn too early.

It fixes #3978
This commit is contained in:
Deve 2019-06-28 22:18:22 +02:00
parent 08d686f156
commit 4df28023b5
2 changed files with 12 additions and 5 deletions

View File

@ -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

View File

@ -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