Skip to content

Commit

Permalink
only pop offsets during replays if cc is off
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Nov 25, 2018
1 parent a19738c commit a4a316b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/PlayerAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,12 @@ PlayerAI::GetTapNoteOffsetForReplay(TapNote* pTN, int noteRow, int col)
// this is done to be able to judge simultaneous taps differently
// due to CC Off this results in possibly incorrect precise per tap
// judges, but the correct judgement ends up being made overall.
m_ReplayTapMap[noteRow].pop_back();
if (m_ReplayTapMap[noteRow].empty()) {
m_ReplayTapMap.erase(noteRow);

if (!pScoreData->GetChordCohesion()) {
m_ReplayTapMap[noteRow].pop_back();
if (m_ReplayTapMap[noteRow].empty()) {
m_ReplayTapMap.erase(noteRow);
}
}

return -offset;
Expand Down

0 comments on commit a4a316b

Please sign in to comment.