fix "noteskin change in a course entry lasts through the next entry if the next entry has no attacks"

This commit is contained in:
Chris Danford
2007-06-10 23:47:35 +00:00
parent 244a639e06
commit f6b8d67f5f
+6 -3
View File
@@ -908,11 +908,14 @@ void ScreenGameplay::SetupSong( int iSongIndex )
a.sModifiers = po.m_sNoteSkin; a.sModifiers = po.m_sNoteSkin;
pi->GetPlayerState()->LaunchAttack( a ); pi->GetPlayerState()->LaunchAttack( a );
/* Update attack bOn flags. */
pi->GetPlayerState()->Update( 0 );
} }
/* Update attack bOn flags, and rebuild Current-level options
* from Song-level options. The current NoteSkin could have changed
* because of an attack ending.
*/
pi->GetPlayerState()->Update( 0 );
// load player // load player
{ {
pi->m_NoteData = ndTransformed; pi->m_NoteData = ndTransformed;