Add some .result hooks.
Have to find the other place to grab them.
This commit is contained in:
+35
-3
@@ -2497,6 +2497,8 @@ done_checking_hopo:
|
||||
|
||||
if( score != TNS_None )
|
||||
{
|
||||
ComboSegment &cs = m_Timing->GetComboSegmentAtRow(row);
|
||||
|
||||
switch( pbt )
|
||||
{
|
||||
DEFAULT_FAIL(pbt);
|
||||
@@ -2508,15 +2510,45 @@ done_checking_hopo:
|
||||
{
|
||||
tn.result.tns = score;
|
||||
tn.result.fTapNoteOffset = -fNoteOffset;
|
||||
|
||||
if (score > MIN_SCORE_TO_CONTINUE_COMBO)
|
||||
{
|
||||
tn.result.numJudgments = cs.GetCombo();
|
||||
}
|
||||
else if (score < MIN_SCORE_TO_MAINTAIN_COMBO)
|
||||
{
|
||||
tn.result.numJudgments = cs.GetMissCombo();
|
||||
}
|
||||
else
|
||||
{
|
||||
tn.result.numJudgments = 1; // sanity check
|
||||
}
|
||||
|
||||
m_NoteData.SetTapNote( t, iRowOfOverlappingNoteOrRow, tn );
|
||||
}
|
||||
}
|
||||
break;
|
||||
case ButtonType_Hopo:
|
||||
case ButtonType_Step:
|
||||
pTN->result.tns = score;
|
||||
pTN->result.fTapNoteOffset = -fNoteOffset;
|
||||
break;
|
||||
{
|
||||
pTN->result.tns = score;
|
||||
pTN->result.fTapNoteOffset = -fNoteOffset;
|
||||
|
||||
if (score > MIN_SCORE_TO_CONTINUE_COMBO)
|
||||
{
|
||||
pTN->result.numJudgments = cs.GetCombo();
|
||||
}
|
||||
else if (score < MIN_SCORE_TO_MAINTAIN_COMBO)
|
||||
{
|
||||
pTN->result.numJudgments = cs.GetMissCombo();
|
||||
}
|
||||
else
|
||||
{
|
||||
pTN->result.numJudgments = 1; // sanity check
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user