Allow editing #DISPLAYBPM traits in the editor.
Look in Edit Song Info to find it.
This commit is contained in:
@@ -500,18 +500,18 @@ bool DWILoader::LoadFromDir( const RString &sPath_, Song &out, set<RString> &Bla
|
||||
* worth bothering with since we don't display fractional BPM anyway.) */
|
||||
if( sscanf( sParams[1], "%i..%i", &iMin, &iMax ) == 2 )
|
||||
{
|
||||
out.m_DisplayBPMType = Song::DISPLAY_SPECIFIED;
|
||||
out.m_DisplayBPMType = DISPLAY_BPM_SPECIFIED;
|
||||
out.m_fSpecifiedBPMMin = (float) iMin;
|
||||
out.m_fSpecifiedBPMMax = (float) iMax;
|
||||
}
|
||||
else if( sscanf( sParams[1], "%i", &iMin ) == 1 )
|
||||
{
|
||||
out.m_DisplayBPMType = Song::DISPLAY_SPECIFIED;
|
||||
out.m_DisplayBPMType = DISPLAY_BPM_SPECIFIED;
|
||||
out.m_fSpecifiedBPMMin = out.m_fSpecifiedBPMMax = (float) iMin;
|
||||
}
|
||||
else
|
||||
{
|
||||
out.m_DisplayBPMType = Song::DISPLAY_RANDOM;
|
||||
out.m_DisplayBPMType = DISPLAY_BPM_RANDOM;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user