[ScreenGameplay, LyricDisplay] Stop lyrics from animating on failure. Fixes issue 298.

This commit is contained in:
AJ Kelly
2011-07-31 12:54:21 -05:00
parent d3f641c0e3
commit 06c447026d
4 changed files with 18 additions and 1 deletions
+5
View File
@@ -8,6 +8,11 @@ ________________________________________________________________________________
StepMania 5.0 Preview 3 | 20110???
--------------------------------------------------------------------------------
2011/07/31
----------
* [ScreenGameplay, LyricDisplay] Stop lyrics from animating on failure.
Fixes issue 298. [AJ]
2011/07/30
----------
* [ProfileManager] Fix an issue when deleting recently created profiles. [AJ]
+8
View File
@@ -31,10 +31,18 @@ void LyricDisplay::Init()
m_iCurLyricNumber = 0;
m_fLastSecond = -500;
m_bStopped = false;
}
void LyricDisplay::Stop() {
m_bStopped = true;
}
void LyricDisplay::Update( float fDeltaTime )
{
if( m_bStopped )
return;
ActorFrame::Update( fDeltaTime );
if( GAMESTATE->m_pCurSong == NULL )
+4
View File
@@ -13,10 +13,14 @@ public:
// Call when song changes:
void Init();
// Call on song failed:
void Stop();
private:
BitmapText m_textLyrics[2];
unsigned m_iCurLyricNumber;
float m_fLastSecond;
bool m_bStopped;
};
#endif
+1 -1
View File
@@ -1713,7 +1713,7 @@ void ScreenGameplay::Update( float fDeltaTime )
{
m_pSoundMusic->StopPlaying();
SCREENMAN->PostMessageToTopScreen( SM_NotesEnded, 0 );
// todo: stop lyrics (m_LyricDisplay) from animating -aj
m_LyricDisplay.Stop();
}
// Update living players' alive time