Don't spend time decompressing and compressing when setting the note data.

This commit is contained in:
Steve Checkoway
2006-08-21 15:16:35 +00:00
parent 9b415eb365
commit c6573648ca
+8 -1
View File
@@ -49,7 +49,14 @@ void Steps::SetNoteData( const NoteData& noteDataNew )
{
ASSERT( noteDataNew.GetNumTracks() == GameManager::StepsTypeToNumTracks(m_StepsType) );
DeAutogen();
if( parent )
{
copy( parent->m_CachedRadarValues, parent->m_CachedRadarValues + NUM_PLAYERS, m_CachedRadarValues );
m_sDescription = parent->m_sDescription;
m_Difficulty = parent->m_Difficulty;
m_iMeter = parent->m_iMeter;
parent = NULL;
}
*m_pNoteData = noteDataNew;
m_bNoteDataIsFilled = true;