Make m_TapNotes a vector. (Hmm. Not ideal, but better.) Still not

completely abstracted (NotesLoaderBMS).
This commit is contained in:
Glenn Maynard
2002-10-25 23:32:50 +00:00
parent 34200fa213
commit 546519e7ec
3 changed files with 34 additions and 30 deletions
+4 -10
View File
@@ -187,16 +187,10 @@ bool BMSLoader::LoadFromBMSFile( const CString &sPath, Notes &out )
out.m_NotesType == NOTES_TYPE_DANCE_DOUBLE ||
out.m_NotesType == NOTES_TYPE_DANCE_COUPLE) // if there are 4 panels, then the Up+Right track really contains the notes for Up
{
memcpy(
pNoteData->m_TapNotes[DANCE_NOTE_PAD1_UP],
pNoteData->m_TapNotes[DANCE_NOTE_PAD1_UPRIGHT],
MAX_TAP_NOTE_ROWS*sizeof(pNoteData->m_TapNotes[0][0])
);
memset(
pNoteData->m_TapNotes[DANCE_NOTE_PAD2_UPRIGHT],
'0',
MAX_TAP_NOTE_ROWS*sizeof(pNoteData->m_TapNotes[0][0])
);
pNoteData->m_TapNotes[DANCE_NOTE_PAD1_UP] =
pNoteData->m_TapNotes[DANCE_NOTE_PAD1_UPRIGHT];
for(unsigned i = 0; i < pNoteData->m_TapNotes[DANCE_NOTE_PAD1_UPRIGHT].size(); ++i)
pNoteData->SetTapNote(DANCE_NOTE_PAD1_UPRIGHT, i, TAP_EMPTY);
}
// we're done reading in all of the BMS values