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
This commit is contained in:
Glenn Maynard
2005-02-24 20:32:10 +00:00
parent aa279e07e2
commit a6c189529a
+3 -1
View File
@@ -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;