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,6 +426,10 @@ static bool LoadFromDWITokens(
|
|||||||
|
|
||||||
out.m_StepsType = GetTypeFromMode(sMode);
|
out.m_StepsType = GetTypeFromMode(sMode);
|
||||||
|
|
||||||
|
// if the meter is empty, force it to 1.
|
||||||
|
if( sNumFeet.empty() )
|
||||||
|
sNumFeet = "1";
|
||||||
|
|
||||||
out.SetMeter(StringToInt(sNumFeet));
|
out.SetMeter(StringToInt(sNumFeet));
|
||||||
|
|
||||||
out.SetDifficulty( DwiCompatibleStringToDifficulty(sDescription) );
|
out.SetDifficulty( DwiCompatibleStringToDifficulty(sDescription) );
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ static bool LoadFromKSFFile( const RString &sPath, Steps &out, Song &song, bool
|
|||||||
|
|
||||||
else if( sValueName=="DIFFICULTY" )
|
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:
|
// new cases from Aldo_MX's fork:
|
||||||
else if( sValueName=="PLAYER" )
|
else if( sValueName=="PLAYER" )
|
||||||
|
|||||||
Reference in New Issue
Block a user