Simplify checks for unjudgable rows.

This way, we can add more segments later
and now have to change the logic in many places.
This commit is contained in:
Jason Felds
2011-06-08 13:03:07 -04:00
parent 4b11968abc
commit 5216d6be45
3 changed files with 22 additions and 8 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ void GameplayAssist::PlayTicks( const NoteData &nd, const PlayerState *ps )
if( nd.IsThereATapOrHoldHeadAtRow( r ) )
iClapRow = r;
if( iClapRow != -1 && !timing.IsWarpAtRow( iClapRow ) && !timing.IsFakeAtRow( iClapRow ) )
if( iClapRow != -1 && timing.IsJudgableAtRow(iClapRow))
{
const float fTickBeat = NoteRowToBeat( iClapRow );
const float fTickSecond = timing.GetElapsedTimeFromBeatNoOffset( fTickBeat );