Kill tickholds right away

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