make these two asserts more helpful
This commit is contained in:
@@ -360,14 +360,14 @@ void ScoreKeeperNormal::AddScoreInternal( TapNoteScore score )
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT( iScore >= 0 );
|
ASSERT_M( iScore >= 0, "iScore < 0 before re-rounding" );
|
||||||
|
|
||||||
// Undo rounding from the last tap, and re-round.
|
// Undo rounding from the last tap, and re-round.
|
||||||
iScore += m_iScoreRemainder;
|
iScore += m_iScoreRemainder;
|
||||||
m_iScoreRemainder = (iScore % m_iRoundTo);
|
m_iScoreRemainder = (iScore % m_iRoundTo);
|
||||||
iScore = iScore - m_iScoreRemainder;
|
iScore = iScore - m_iScoreRemainder;
|
||||||
|
|
||||||
ASSERT( iScore >= 0 );
|
ASSERT_M( iScore >= 0, "iScore < 0 after re-rounding" );
|
||||||
|
|
||||||
// LOG->Trace( "score: %i", iScore );
|
// LOG->Trace( "score: %i", iScore );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user