empty meter fixes for DWI/KSF; KSF is more of a 'it used to be 0, now it's 1' thing
This commit is contained in:
@@ -426,10 +426,14 @@ static bool LoadFromDWITokens(
|
||||
|
||||
out.m_StepsType = GetTypeFromMode(sMode);
|
||||
|
||||
// if the meter is empty, force it to 1.
|
||||
if( sNumFeet.empty() )
|
||||
sNumFeet = "1";
|
||||
|
||||
out.SetMeter(StringToInt(sNumFeet));
|
||||
|
||||
out.SetDifficulty( DwiCompatibleStringToDifficulty(sDescription) );
|
||||
|
||||
|
||||
out.SetNoteData( ParseNoteData(sStepData1, sStepData2, out, sPath) );
|
||||
|
||||
out.TidyUpData();
|
||||
|
||||
@@ -141,7 +141,7 @@ static bool LoadFromKSFFile( const RString &sPath, Steps &out, Song &song, bool
|
||||
|
||||
else if( sValueName=="DIFFICULTY" )
|
||||
{
|
||||
out.SetMeter( max(StringToInt(sParams[1]), 0) );
|
||||
out.SetMeter( max(StringToInt(sParams[1]), 1) );
|
||||
}
|
||||
// new cases from Aldo_MX's fork:
|
||||
else if( sValueName=="PLAYER" )
|
||||
|
||||
Reference in New Issue
Block a user