From a6c189529a6b254383c94f0b39b6220a5c01c3ef Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 24 Feb 2005 20:32:10 +0000 Subject: [PATCH] obey m_fHibernateSecondsLeft, so a 3-second TipShowTime that starts by delaying off-screen for 2.5 seconds can instead hibernate,2.5, to avoid showing the first tip for only .5 seconds --- stepmania/src/HelpDisplay.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/HelpDisplay.cpp b/stepmania/src/HelpDisplay.cpp index 39dca2c901..bfb4755500 100644 --- a/stepmania/src/HelpDisplay.cpp +++ b/stepmania/src/HelpDisplay.cpp @@ -54,12 +54,14 @@ void HelpDisplay::SetTips( const CStringArray &arrayTips, const CStringArray &ar void HelpDisplay::Update( float fDeltaTime ) { + float fHibernate = m_fHibernateSecondsLeft; + BitmapText::Update( fDeltaTime ); if( m_arrayTips.empty() ) return; - m_fSecsUntilSwitch -= fDeltaTime; + m_fSecsUntilSwitch -= max( fDeltaTime - fHibernate, 0 ); if( m_fSecsUntilSwitch > 0 ) return;