It's hard to maintain this information when using begin() and end() so rather than wrapping the iterators, just check each time IsComposite() is called since it doesn't happen _that_ often. Just don't call IsComposite() often.

This commit is contained in:
Steve Checkoway
2006-06-26 09:33:11 +00:00
parent ec9d50c332
commit 8129d943ba
5 changed files with 15 additions and 11 deletions
+2 -2
View File
@@ -225,11 +225,11 @@ void Steps::Decompress() const
else
{
// load from compressed
bool bComposite = m_StepsType == STEPS_TYPE_DANCE_ROUTINE;
m_bNoteDataIsFilled = true;
m_pNoteData->SetNumTracks( GameManager::StepsTypeToNumTracks(m_StepsType) );
m_pNoteData->SetComposite( m_StepsType == STEPS_TYPE_DANCE_ROUTINE );
NoteDataUtil::LoadFromSMNoteDataString( *m_pNoteData, m_sNoteDataCompressed );
NoteDataUtil::LoadFromSMNoteDataString( *m_pNoteData, m_sNoteDataCompressed, bComposite );
}
}