Commit 4402db8 1 parent 5820aa7 commit 4402db8 Copy full SHA for 4402db8
File tree 3 files changed +17
-6
lines changed
3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -341,14 +341,11 @@ PlayerReplay::UpdateTapNotesMissedOlderThan(float fMissIfOlderThanSeconds)
341
341
if (m_pPrimaryScoreKeeper)
342
342
m_pPrimaryScoreKeeper->HandleTapScore (tn);
343
343
} else {
344
+ if ((PlayerAI::IsTapAtRowAndColumn (iter.Row (), iter.Track ())))
345
+ continue ;
346
+
344
347
tn.result .tns = TNS_Miss;
345
348
346
- // avoid scoring notes that get passed when seeking in pm
347
- // not sure how many rows grace time is needed (if any?)
348
- if (GAMESTATE->m_pPlayerState ->m_PlayerOptions .GetCurrent ()
349
- .m_bPractice &&
350
- iMissIfOlderThanThisRow - iter.Row () > 8 )
351
- tn.result .tns = TNS_None;
352
349
if (GAMESTATE->CountNotesSeparately ()) {
353
350
SetJudgment (iter.Row (), iter.Track (), tn);
354
351
HandleTapRowScore (iter.Row ());
Original file line number Diff line number Diff line change @@ -248,6 +248,18 @@ PlayerAI::TapExistsAtOrBeforeThisRow(int noteRow)
248
248
}
249
249
}
250
250
251
+ bool
252
+ PlayerAI::IsTapAtRowAndColumn (int noteRow, int col)
253
+ {
254
+ if (m_ReplayTapMap.count (noteRow) == 0 )
255
+ return false ;
256
+ for (auto & tap : m_ReplayTapMap[noteRow]) {
257
+ if (tap.track == col)
258
+ return true ;
259
+ }
260
+ return false ;
261
+ }
262
+
251
263
vector<TapReplayResult>
252
264
PlayerAI::GetTapsAtOrBeforeRow (int noteRow)
253
265
{
Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ class PlayerAI
73
73
// screen
74
74
static void CalculateRadarValuesForReplay (RadarValues& rv,
75
75
RadarValues& possibleRV);
76
+ // Find a tap at the given row and column
77
+ static bool IsTapAtRowAndColumn (int noteRow, int col);
76
78
};
77
79
78
80
#endif
You can’t perform that action at this time.
0 commit comments