Mute the keysound immediately when letting go of hold note.

Don't know if that last formula change is intentional or not, so restoring this
old formula. Back this out if it's actually intentional.
This commit is contained in:
Thai Pangsakulyanont
2011-08-08 00:40:14 +07:00
parent 6b6f9bba35
commit 4dfed45103
+1 -2
View File
@@ -1402,8 +1402,7 @@ void Player::UpdateHoldNotes( int iSongRow, float fDeltaTime, vector<TrackRowTap
// Possibly fixed.
if( tn.iKeysoundIndex >= 0 && tn.iKeysoundIndex < (int) m_vKeysounds.size() )
{
float factor = (tn.subType == TapNote::hold_head_roll ? 2 : 10.0f - 8.5f);
factor *= fLifeFraction;
float factor = (tn.subType == TapNote::hold_head_roll ? 2.0 * fLifeFraction : 10.0f * fLifeFraction - 8.5f);
m_vKeysounds[tn.iKeysoundIndex].SetProperty ("Volume", max(0.0f, min(1.0f, factor)));
}
}