test: try to fix "phantom holds" when JudgeHoldNotesOnSameTogether is enabled
This commit is contained in:
@@ -1104,6 +1104,13 @@ void Player::UpdateHoldNotes( int iSongRow, float fDeltaTime, vector<TrackRowTap
|
||||
ASSERT( iStartRow == trtn->iRow );
|
||||
TapNote &tn = *trtn->pTN;
|
||||
int iEndRow = iStartRow + tn.iDuration;
|
||||
|
||||
if( iEndRow < iSongRow )
|
||||
{
|
||||
trtn = --vTN.erase(trtn);
|
||||
continue;
|
||||
}
|
||||
|
||||
if( subType == TapNote::SubType_Invalid )
|
||||
subType = tn.subType;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user