From c6573648ca4a30eb2c084269d83478b2c5b48fca Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 21 Aug 2006 15:16:35 +0000 Subject: [PATCH] Don't spend time decompressing and compressing when setting the note data. --- stepmania/src/Steps.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Steps.cpp b/stepmania/src/Steps.cpp index fa8fec18b5..eee01a7340 100644 --- a/stepmania/src/Steps.cpp +++ b/stepmania/src/Steps.cpp @@ -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;