Skip to content

Commit

Permalink
rename SetPlayerStageStatsForReplay to RescoreReplay in cpp
Browse files Browse the repository at this point in the history
it probably makes more sense
  • Loading branch information
poco0317 committed Dec 19, 2022
1 parent db8af69 commit 09b3f23
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Etterna/Screen/Gameplay/ScreenGameplayReplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ ScreenGameplayReplay::StageFinished(bool bBackedOut)

auto* const pss = m_vPlayerInfo.GetPlayerStageStats();
// Makes sure all PlayerStageStats discrepancies are corrected forcibly.
REPLAYS->SetPlayerStageStatsForReplay(*REPLAYS->GetActiveReplay(), pss);
REPLAYS->RescoreReplay(*REPLAYS->GetActiveReplay(), pss);

STATSMAN->m_CurStageStats.FinalizeScores();

Expand Down
2 changes: 1 addition & 1 deletion src/Etterna/Screen/Others/ScreenEvaluation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ class LunaScreenEvaluation : public Luna<ScreenEvaluation>
replay->SetUseReprioritizedNoteRows(useReprioritizedNoterows);
REPLAYS->EnableCustomScoringFunctions();
REPLAYS->InitReplayPlaybackForScore(hs, ts);
REPLAYS->SetPlayerStageStatsForReplay(*replay, pPSS, ts);
REPLAYS->RescoreReplay(*replay, pPSS, ts);
REPLAYS->ReleaseReplay(replay); // remove extra reference
REPLAYS->DisableCustomScoringFunctions();
lua_pushboolean(L, true);
Expand Down
2 changes: 1 addition & 1 deletion src/Etterna/Singletons/ReplayManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ ReplayManager::CalculateRadarValuesForReplay(Replay& replay, RadarValues& rv, Ra
}

auto
ReplayManager::SetPlayerStageStatsForReplay(Replay& replay, PlayerStageStats* pss, float ts)
ReplayManager::RescoreReplay(Replay& replay, PlayerStageStats* pss, float ts)
-> bool
{
Locator::getLogger()->info("Entered PSSFromReplayData function");
Expand Down
2 changes: 1 addition & 1 deletion src/Etterna/Singletons/ReplayManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class ReplayManager
RadarValues& rv,
RadarValues& possibleRV) -> bool;

auto SetPlayerStageStatsForReplay(Replay& replay,
auto RescoreReplay(Replay& replay,
PlayerStageStats* pss,
float timingScale = 1.F) -> bool;

Expand Down

0 comments on commit 09b3f23

Please sign in to comment.