From a7f1b83963a41b2682b8579693dd3b1848029daa Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Sat, 23 May 2009 22:22:44 +0000 Subject: [PATCH] Code cleanup: no need to re-initialize a variable to the same thing on false. --- stepmania/src/Player.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index afe9cc75eb..309ae60d60 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -1680,8 +1680,7 @@ void Player::StepStrumHopo( int col, int row, const RageTimer &tm, bool bHeld, b bool bInitiatedNote = true; if( REQUIRE_STEP_ON_HOLD_HEADS ) bInitiatedNote = tns != TNS_None && tns != TNS_Miss; // did they step on the start? - else - bInitiatedNote = true; + const int iEndRow = iRow + tn.iDuration; if( bInitiatedNote && tn.HoldResult.fLife != 0 )