From 4dd2f3a301b1a03dd83f13fde65fb3a7730a8d39 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 26 Dec 2006 22:35:49 +0000 Subject: [PATCH] less logic inside conditional --- stepmania/src/InputFilter.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/stepmania/src/InputFilter.cpp b/stepmania/src/InputFilter.cpp index cda7e261e6..654525efba 100644 --- a/stepmania/src/InputFilter.cpp +++ b/stepmania/src/InputFilter.cpp @@ -125,18 +125,18 @@ void InputFilter::ButtonPressed( const DeviceInput &di, bool Down ) ButtonState &bs = GetButtonState( di ); + /* Flush any delayed input, like Update() (in case Update() isn't being called). */ + RageTimer now; + CheckButtonChange( bs, di, now ); + if( bs.m_BeingHeld != Down ) { - /* Flush any delayed input, like Update() (in case Update() isn't being called). */ - RageTimer now; - CheckButtonChange( bs, di, now ); - bs.m_BeingHeld = Down; bs.m_BeingHeldTime = di.ts; - - /* Try to report presses immediately. */ - CheckButtonChange( bs, di, now ); } + + /* Try to report presses immediately. */ + CheckButtonChange( bs, di, now ); } void InputFilter::SetButtonComment( const DeviceInput &di, const RString &sComment )