Re-fix Autogen (I'll shoot the person who forgot about TAP_EMPTY)

fix misc. errors with the BMS loader
finish support for 48th/64th notes in code
This commit is contained in:
Matt Denham
2003-11-13 07:35:58 +00:00
parent 755a3167ff
commit 686f0656bd
6 changed files with 27 additions and 9 deletions
+4
View File
@@ -49,6 +49,9 @@
int iTracks[MAX_NOTE_TRACKS];
void BMSLoader::ResetTracksMagic( void ) {
for (int ix = 0; ix<MAX_NOTE_TRACKS; ix++) iTracks[ix] = 0;
}
void BMSLoader::PushTrackNumForMagic( int iTrackNum ) {
int ix = (iTrackNum < 20) ? (iTrackNum - 11) : (iTrackNum - 12);
iTracks[ix]++;
@@ -150,6 +153,7 @@ bool BMSLoader::LoadFromBMSFile( const CString &sPath, Steps &out )
NoteData* pNoteData = new NoteData;
pNoteData->SetNumTracks( MAX_NOTE_TRACKS );
ResetTracksMagic();
ifstream file(sPath);
if( file.bad() )