[splittiming] input fixes

This commit is contained in:
Thai Pangsakulyanont
2011-05-16 22:44:56 +07:00
parent ae673c9823
commit 1fd19c62a7
+12 -1
View File
@@ -2787,9 +2787,19 @@ void ScreenEdit::HandleScreenMessage( const ScreenMessage SM )
SetDirty( true ); SetDirty( true );
} }
else if ( SM == SM_BackFromSpeedModeChange ) else if ( SM == SM_BackFromSpeedModeChange )
{
if( ScreenTextEntry::s_sLastAnswer.substr(0, 1) == "b" || ScreenTextEntry::s_sLastAnswer.substr(0, 1) == "B" )
{
GetAppropriateTiming().SetSpeedModeAtBeat( GetBeat(), 0 );
}
else if( ScreenTextEntry::s_sLastAnswer.substr(0, 1) == "s" || ScreenTextEntry::s_sLastAnswer.substr(0, 1) == "S" )
{
GetAppropriateTiming().SetSpeedModeAtBeat( GetBeat(), 1 );
}
else
{ {
int tmp = StringToInt(ScreenTextEntry::s_sLastAnswer ); int tmp = StringToInt(ScreenTextEntry::s_sLastAnswer );
if( tmp == 0 || ScreenTextEntry::s_sLastAnswer.substr(0, 1) == "b" || ScreenTextEntry::s_sLastAnswer.substr(0, 1) == "B" ) if( tmp == 0 )
{ {
GetAppropriateTiming().SetSpeedModeAtBeat( GetBeat(), 0 ); GetAppropriateTiming().SetSpeedModeAtBeat( GetBeat(), 0 );
} }
@@ -2797,6 +2807,7 @@ void ScreenEdit::HandleScreenMessage( const ScreenMessage SM )
{ {
GetAppropriateTiming().SetSpeedModeAtBeat( GetBeat(), 1 ); GetAppropriateTiming().SetSpeedModeAtBeat( GetBeat(), 1 );
} }
}
SetDirty( true ); SetDirty( true );
} }
else if ( SM == SM_BackFromFakeChange ) else if ( SM == SM_BackFromFakeChange )