Make m_TapNotes a vector. (Hmm. Not ideal, but better.) Still not
completely abstracted (NotesLoaderBMS).
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user