Hide mines that have been avoided so that TNS_AvoidMine isn't spammed every frame.
This commit is contained in:
+7
-1
@@ -2790,7 +2790,6 @@ void Player::UpdateTapNotesMissedOlderThan( float fMissIfOlderThanSeconds )
|
|||||||
if( tn.type == TapNoteType_Mine )
|
if( tn.type == TapNoteType_Mine )
|
||||||
{
|
{
|
||||||
tn.result.tns = TNS_AvoidMine;
|
tn.result.tns = TNS_AvoidMine;
|
||||||
|
|
||||||
/* The only real way to tell if a mine has been scored is if it has disappeared
|
/* The only real way to tell if a mine has been scored is if it has disappeared
|
||||||
* but this only works for hit mines so update the scores for avoided mines here. */
|
* but this only works for hit mines so update the scores for avoided mines here. */
|
||||||
if( m_pPrimaryScoreKeeper )
|
if( m_pPrimaryScoreKeeper )
|
||||||
@@ -2896,6 +2895,7 @@ void Player::UpdateJudgedRows()
|
|||||||
continue;
|
continue;
|
||||||
case TNS_AvoidMine:
|
case TNS_AvoidMine:
|
||||||
SetMineJudgment( tn.result.tns , iter.Track() );
|
SetMineJudgment( tn.result.tns , iter.Track() );
|
||||||
|
tn.result.bHidden= true;
|
||||||
continue;
|
continue;
|
||||||
case TNS_HitMine:
|
case TNS_HitMine:
|
||||||
SetMineJudgment( tn.result.tns , iter.Track() );
|
SetMineJudgment( tn.result.tns , iter.Track() );
|
||||||
@@ -2939,6 +2939,12 @@ void Player::UpdateJudgedRows()
|
|||||||
m_pSecondaryScoreKeeper->HandleTapScore( tn );
|
m_pSecondaryScoreKeeper->HandleTapScore( tn );
|
||||||
tn.result.bHidden = true;
|
tn.result.bHidden = true;
|
||||||
}
|
}
|
||||||
|
// If we hit the end of the loop, m_pIterUnjudgedMineRows needs to be
|
||||||
|
// updated. -Kyz
|
||||||
|
if((iter.IsAtEnd() || iLastSeenRow == iEndRow) && bAllJudged)
|
||||||
|
{
|
||||||
|
*m_pIterUnjudgedMineRows= iter;
|
||||||
|
}
|
||||||
|
|
||||||
FOREACHS( RageSound *, setSounds, s )
|
FOREACHS( RageSound *, setSounds, s )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user