Kill tickholds right away

This commit is contained in:
Ben "root" Anderson
2013-12-20 19:57:19 -06:00
parent c783009730
commit b61e8783b5
+7
View File
@@ -1283,6 +1283,12 @@ void Player::UpdateHoldNotes( int iSongRow, float fDeltaTime, vector<TrackRowTap
LOG->Trace("[ ] Holding Button"); LOG->Trace("[ ] Holding Button");
*/ */
// For tickholds, the concept of "life" doesn't really apply.
// XXX: if IMMEDIATE_HOLD_LET_GO this will kill holds if it's EVER let go,
// not just at the first missed checkpoint.
if( GAMESTATE->GetCurrentGame()->m_bTickHolds ) fLife = 0.0;
else
{
// Decrease life // Decrease life
//LOG->Trace("fLife before minus: %f",fLife); //LOG->Trace("fLife before minus: %f",fLife);
fLife -= fDeltaTime/GetWindowSeconds(TW_Hold); fLife -= fDeltaTime/GetWindowSeconds(TW_Hold);
@@ -1290,6 +1296,7 @@ void Player::UpdateHoldNotes( int iSongRow, float fDeltaTime, vector<TrackRowTap
fLife = max( fLife, 0 ); // clamp fLife = max( fLife, 0 ); // clamp
//LOG->Trace("fLife after: %f",fLife); //LOG->Trace("fLife after: %f",fLife);
} }
}
break; break;
case TapNote::hold_head_roll: case TapNote::hold_head_roll:
FOREACH( TrackRowTapNote, vTN, trtn ) FOREACH( TrackRowTapNote, vTN, trtn )