style cleanup
don't touch hold_head_holds in StepStrumHopo
This commit is contained in:
+21
-10
@@ -1001,7 +1001,9 @@ void Player::UpdateHoldNotes( int iSongRow, float fDeltaTime, vector<TrackRowTap
|
|||||||
bLetGoOfHoldNote = iCheckpointsMissed > 0;
|
bLetGoOfHoldNote = iCheckpointsMissed > 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
bLetGoOfHoldNote = fLife == 0;
|
bLetGoOfHoldNote = fLife == 0;
|
||||||
|
}
|
||||||
|
|
||||||
if( bInitiatedNote && !bLetGoOfHoldNote )
|
if( bInitiatedNote && !bLetGoOfHoldNote )
|
||||||
{
|
{
|
||||||
@@ -1549,6 +1551,16 @@ void Player::StepStrumHopo( int col, int row, const RageTimer &tm, bool bHeld, b
|
|||||||
TapNote &tn = begin->second;
|
TapNote &tn = begin->second;
|
||||||
if( tn.type != TapNote::hold_head )
|
if( tn.type != TapNote::hold_head )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
switch( tn.subType )
|
||||||
|
{
|
||||||
|
DEFAULT_FAIL( tn.subType );
|
||||||
|
case TapNote::hold_head_hold:
|
||||||
|
continue;
|
||||||
|
case TapNote::hold_head_roll:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
const int iRow = begin->first;
|
const int iRow = begin->first;
|
||||||
|
|
||||||
HoldNoteScore hns = tn.HoldResult.hns;
|
HoldNoteScore hns = tn.HoldResult.hns;
|
||||||
@@ -1575,12 +1587,6 @@ void Player::StepStrumHopo( int col, int row, const RageTimer &tm, bool bHeld, b
|
|||||||
// If the song beat is in the range of this hold:
|
// If the song beat is in the range of this hold:
|
||||||
if( iRow <= iSongRow && iRow <= iEndRow )
|
if( iRow <= iSongRow && iRow <= iEndRow )
|
||||||
{
|
{
|
||||||
switch( tn.subType )
|
|
||||||
{
|
|
||||||
case TapNote::hold_head_hold:
|
|
||||||
// this is handled in Update
|
|
||||||
break;
|
|
||||||
case TapNote::hold_head_roll:
|
|
||||||
if( bInitiatedNote )
|
if( bInitiatedNote )
|
||||||
{
|
{
|
||||||
// Increase life
|
// Increase life
|
||||||
@@ -1605,9 +1611,6 @@ void Player::StepStrumHopo( int col, int row, const RageTimer &tm, bool bHeld, b
|
|||||||
m_pNoteField->DidHoldNote( col, HNS_Held, bBright );
|
m_pNoteField->DidHoldNote( col, HNS_Held, bBright );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
ASSERT(0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2405,8 +2408,16 @@ void Player::CrossedRows( int iLastRowCrossed, const RageTimer &now )
|
|||||||
TapNote &tn = *iter;
|
TapNote &tn = *iter;
|
||||||
if( tn.type != TapNote::hold_head )
|
if( tn.type != TapNote::hold_head )
|
||||||
continue;
|
continue;
|
||||||
if( tn.subType != TapNote::hold_head_hold )
|
|
||||||
|
switch( tn.subType )
|
||||||
|
{
|
||||||
|
DEFAULT_FAIL( tn.subType );
|
||||||
|
case TapNote::hold_head_hold:
|
||||||
|
break;
|
||||||
|
case TapNote::hold_head_roll:
|
||||||
|
// checkpoints don't apply to rolls
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
int iStartRow = iter.Row();
|
int iStartRow = iter.Row();
|
||||||
int iEndRow = iStartRow + tn.iDuration;
|
int iEndRow = iStartRow + tn.iDuration;
|
||||||
|
|||||||
Reference in New Issue
Block a user