From 6999f94d38919b013e351160dbdeb7690dbaa668 Mon Sep 17 00:00:00 2001 From: Flameshadowxeroshin Date: Tue, 14 May 2013 22:54:20 -0500 Subject: [PATCH] test: try to fix "phantom holds" when JudgeHoldNotesOnSameTogether is enabled --- src/Player.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Player.cpp b/src/Player.cpp index 547a62d3b9..68d84d73f2 100644 --- a/src/Player.cpp +++ b/src/Player.cpp @@ -1104,6 +1104,13 @@ void Player::UpdateHoldNotes( int iSongRow, float fDeltaTime, vectoriRow ); 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;