Skip to content

Commit

Permalink
Fix 180ms bads counting as bads instead of misses in replays
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Nov 28, 2018
1 parent e6092c4 commit f54d91f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/ScreenSelectMusic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1738,7 +1738,15 @@ class LunaScreenSelectMusic : public Luna<ScreenSelectMusic>
noterowwithoffset += noterowoffsetter;
GAMESTATE->SetProcessedTimingData(nullptr);
//hs->SetNoteRowVector(ihatemylife);
hs->SetNoteRowVector(noterows);
hs->SetNoteRowVector(noterows);

// Since we keep misses on EO as 180ms, we need to convert them back.
auto offsets = hs->GetCopyOfOffsetVector();
for (auto& offset : offsets) {
if (fabs(offset) >= .18f)
offset = -1.1f; // This is a miss to the replay reader.
}
hs->SetOffsetVector(offsets);
}

PlayerAI::SetScoreData(hs);
Expand Down

0 comments on commit f54d91f

Please sign in to comment.