Skip to content

Commit

Permalink
Generate LifeGraphs when viewing Eval for local replays
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Oct 18, 2019
1 parent 458799e commit 6d5e994
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Etterna/Screen/Others/ScreenSelectMusic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1682,7 +1682,7 @@ class LunaScreenSelectMusic : public Luna<ScreenSelectMusic>
}
hs->SetOffsetVector(offsets);
}

PlayerAI::ResetScoreData();
PlayerAI::SetScoreData(hs, 0, &nd);

// prepare old mods to return to
Expand Down Expand Up @@ -1778,7 +1778,10 @@ class LunaScreenSelectMusic : public Luna<ScreenSelectMusic>
false; // disallow viewing online score eval screens -mina
auto score = SCOREMAN->GetMostRecentScore();
score->LoadReplayData();
PlayerAI::SetScoreData(score);
PlayerAI::ResetScoreData();
PlayerAI::SetScoreData(score, 0, &nd);
TimingData* td = steps->GetTimingData();
PlayerAI::pReplayTiming = td;

auto& pss = ss.m_player;
pss.m_HighScore = *score;
Expand Down Expand Up @@ -1808,7 +1811,9 @@ class LunaScreenSelectMusic : public Luna<ScreenSelectMusic>
pss.m_iHoldNoteScores[i] =
score->GetHoldNoteScore((HoldNoteScore)i);
}
pss.m_fLifeRecord = PlayerAI::GenerateLifeRecordForReplay();
ss.m_vpPlayedSongs.emplace_back(GAMESTATE->m_pCurSong);
ss.m_vpPossibleSongs.emplace_back(GAMESTATE->m_pCurSong);
STATSMAN->m_CurStageStats = ss;
STATSMAN->m_vPlayedStageStats.emplace_back(ss);

Expand Down

0 comments on commit 6d5e994

Please sign in to comment.