Fix "halfdouble". (Heavily-used feature: nobody noticed this bug

for over a year.  :)
This commit is contained in:
Glenn Maynard
2004-09-13 08:47:22 +00:00
parent 0407093413
commit 7590770659
+13 -8
View File
@@ -126,18 +126,23 @@ bool KSFLoader::LoadFromKSFFile( const CString &sPath, Steps &out, const Song &s
notedata.SetNumTracks( 5 );
out.m_StepsType = STEPS_TYPE_PUMP_SINGLE;
if( sFName.Find("double") != -1 )
/* Check for "halfdouble" before "double". */
if( sFName.Find("halfdouble") != -1 )
{
notedata.SetNumTracks( 10 );
out.m_StepsType = STEPS_TYPE_PUMP_DOUBLE;
} else if( sFName.Find("_2") != -1 ) {
notedata.SetNumTracks( 10 );
out.m_StepsType = STEPS_TYPE_PUMP_COUPLE;
} else if( sFName.Find("halfdouble") != -1 ) {
notedata.SetNumTracks( 6 );
out.m_StepsType = STEPS_TYPE_PUMP_HALFDOUBLE;
}
else if( sFName.Find("double") != -1 )
{
notedata.SetNumTracks( 10 );
out.m_StepsType = STEPS_TYPE_PUMP_DOUBLE;
}
else if( sFName.Find("_2") != -1 )
{
notedata.SetNumTracks( 10 );
out.m_StepsType = STEPS_TYPE_PUMP_COUPLE;
}
}
int iHoldStartRow[13];