From 45d27f00fef8de7dd211c4b17e99c21087702dac Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 26 Feb 2004 06:47:13 +0000 Subject: [PATCH] cleanup, fix warnings --- stepmania/src/ScreenEdit.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/stepmania/src/ScreenEdit.cpp b/stepmania/src/ScreenEdit.cpp index 06450c5c24..5d4cd4229d 100644 --- a/stepmania/src/ScreenEdit.cpp +++ b/stepmania/src/ScreenEdit.cpp @@ -1853,14 +1853,15 @@ void ScreenEdit::HandleAreaMenuChoice( AreaMenuChoice c, int* iAnswers ) const vector sIter = m_pSong->GetAllSteps(); NoteData ndTemp; CString sTempStyle, sTempDiff; - for (int i = 0; i < sIter.size(); i++) { - if (sIter[i]->IsAutogen()) { + for( unsigned i = 0; i < sIter.size(); i++ ) + { + if( sIter[i]->IsAutogen() ) continue; - } - if ((sIter[i]->m_StepsType == GAMESTATE->m_pCurNotes[PLAYER_1]->m_StepsType) && - (sIter[i]->GetDifficulty() == GAMESTATE->m_pCurNotes[PLAYER_1]->GetDifficulty())) { + + /* XXX: Edits are distinguished by description. Compare vs m_pNotes. */ + if( (sIter[i]->m_StepsType == GAMESTATE->m_pCurNotes[PLAYER_1]->m_StepsType) && + (sIter[i]->GetDifficulty() == GAMESTATE->m_pCurNotes[PLAYER_1]->GetDifficulty()) ) continue; - } sIter[i]->GetNoteData( &ndTemp ); ndTemp.ConvertHoldNotesTo2sAnd3s();