fix course mode
This commit is contained in:
@@ -528,9 +528,6 @@ ScreenGameplay::ScreenGameplay( CString sName, bool bDemonstration ) : Screen("S
|
||||
|
||||
m_textStepsDescription[p].LoadFromFont( THEME->GetPathToF("ScreenGameplay StepsDescription") );
|
||||
m_textStepsDescription[p].SetName( ssprintf("StepsDescriptionP%i",p+1) );
|
||||
Steps* pSteps = GAMESTATE->m_pCurNotes[p];
|
||||
ASSERT( pSteps );
|
||||
m_textStepsDescription[p].SetText( pSteps->GetDescription() );
|
||||
SET_XY( m_textStepsDescription[p] );
|
||||
this->AddChild( &m_textStepsDescription[p] );
|
||||
}
|
||||
@@ -863,6 +860,9 @@ void ScreenGameplay::LoadNextSong()
|
||||
|
||||
SetupSong( p, iPlaySongIndex );
|
||||
|
||||
ASSERT( GAMESTATE->m_pCurNotes[p] );
|
||||
m_textStepsDescription[p].SetText( GAMESTATE->m_pCurNotes[p]->GetDescription() );
|
||||
|
||||
/* Increment the play count even if the player fails. (It's still popular,
|
||||
* even if the people playing it aren't good at it.) */
|
||||
if( !m_bDemonstration )
|
||||
|
||||
@@ -21,6 +21,9 @@ SongCreditDisplay::SongCreditDisplay()
|
||||
this->LoadFromFont( THEME->GetPathToF("SongCreditDisplay",(CString)"text") );
|
||||
|
||||
Song* pSong = GAMESTATE->m_pCurSong;
|
||||
if( pSong == NULL ) /* probably course mode */
|
||||
return;
|
||||
|
||||
CString s;
|
||||
s += pSong->GetFullDisplayTitle() + "\n";
|
||||
s += pSong->GetDisplayArtist() + "\n";
|
||||
|
||||
Reference in New Issue
Block a user