bpm cycle code cleaned up

This commit is contained in:
Mike Hawkins
2008-05-09 23:42:28 +00:00
parent b660e8799b
commit 98917ce970
3 changed files with 5 additions and 17 deletions
+3 -13
View File
@@ -158,20 +158,10 @@ void BPMDisplay::CycleRandomly()
RunCommands( SET_RANDOM_COMMAND );
RString sValue = RANDOM_CYCLE_SPEED;
sValue.MakeLower();
m_fCycleTime = (float)RANDOM_CYCLE_SPEED;
if( stricmp(sValue, "vslow") == 0 )
m_fCycleTime = 1.0f;
else if( stricmp(sValue, "slow") == 0 )
m_fCycleTime = 0.5f;
else if( stricmp(sValue, "fast") == 0 )
m_fCycleTime = 0.1f;
else if( stricmp(sValue, "vfast") == 0 )
m_fCycleTime = 0.05f;
else if( stricmp(sValue, "hyper") == 0 )
m_fCycleTime = 0.01f;
else
// Go to default value in event of a negative value in the metrics
if( m_fCycleTime < 0 )
m_fCycleTime = 0.2f;
}