[PlayerOptions] Fix a problem with m-mods where you would get m200 as the default speed modifier.

This commit is contained in:
AJ Kelly
2012-01-15 23:39:53 -06:00
parent 0f25c7f3ba
commit 3fdfc1c4d4
2 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -61,7 +61,7 @@ void PlayerOptions::Approach( const PlayerOptions& other, float fDeltaSeconds )
APPROACH( fTimeSpacing );
APPROACH( fScrollSpeed );
//APPROACH( fMaxScrollBPM );
APPROACH( fMaxScrollBPM );
fapproach( m_fScrollBPM, other.m_fScrollBPM, fDeltaSeconds * other.m_SpeedfScrollBPM*150 );
for( int i=0; i<NUM_ACCELS; i++ )
APPROACH( fAccels[i] );
@@ -355,8 +355,11 @@ bool PlayerOptions::FromOneModString( const RString &sOneMod, RString &sErrorOut
// XXX: will not properly tween, I don't think.
else if( sscanf( sBit, "m%f", &level ) == 1 )
{
// OpenITG doesn't have this block:
/*
if( !isfinite(level) || level <= 0.0f )
level = 200.0f;
*/
SET_FLOAT( fMaxScrollBPM )
m_fTimeSpacing = 0;
}