From 1fd19c62a7e6beafed66975b26e72fd933ca2720 Mon Sep 17 00:00:00 2001 From: Thai Pangsakulyanont Date: Mon, 16 May 2011 22:44:56 +0700 Subject: [PATCH] [splittiming] input fixes --- src/ScreenEdit.cpp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/ScreenEdit.cpp b/src/ScreenEdit.cpp index 43778456be..cce5f82bf4 100644 --- a/src/ScreenEdit.cpp +++ b/src/ScreenEdit.cpp @@ -2788,15 +2788,26 @@ void ScreenEdit::HandleScreenMessage( const ScreenMessage SM ) } else if ( SM == SM_BackFromSpeedModeChange ) { - int tmp = StringToInt(ScreenTextEntry::s_sLastAnswer ); - if( tmp == 0 || ScreenTextEntry::s_sLastAnswer.substr(0, 1) == "b" || ScreenTextEntry::s_sLastAnswer.substr(0, 1) == "B" ) + if( ScreenTextEntry::s_sLastAnswer.substr(0, 1) == "b" || ScreenTextEntry::s_sLastAnswer.substr(0, 1) == "B" ) { GetAppropriateTiming().SetSpeedModeAtBeat( GetBeat(), 0 ); } - else + 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 ); + if( tmp == 0 ) + { + GetAppropriateTiming().SetSpeedModeAtBeat( GetBeat(), 0 ); + } + else + { + GetAppropriateTiming().SetSpeedModeAtBeat( GetBeat(), 1 ); + } + } SetDirty( true ); } else if ( SM == SM_BackFromFakeChange )