Skip to content

Commit

Permalink
Set a temporary highscore for exiting Practice into Evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Nov 24, 2019
1 parent d75dd20 commit 180be6e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/Etterna/Models/Misc/StageStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,9 +608,7 @@ StageStats::FinalizeScores(bool bSummary)
}

// don't save scores if the player chose not to
// also don't save if in practice mode
if (!GAMESTATE->m_SongOptions.GetCurrent().m_bSaveScore ||
GAMESTATE->m_pPlayerState->m_PlayerOptions.GetCurrent().m_bPractice)
if (!GAMESTATE->m_SongOptions.GetCurrent().m_bSaveScore)
return;

LOG->Trace("saving stats and high scores");
Expand Down Expand Up @@ -653,6 +651,13 @@ StageStats::FinalizeScores(bool bSummary)
zzz->m_lastSong.FromSong(GAMESTATE->m_pCurSong);
return;
}

if (GAMESTATE->IsPracticeMode()) {
SCOREMAN->camefromreplay = true;
SCOREMAN->tempscoreforonlinereplayviewing = &hs;
zzz->m_lastSong.FromSong(GAMESTATE->m_pCurSong);
return;
}
// new score structure -mina
int istop2 = SCOREMAN->AddScore(hs);
if (DLMAN->ShouldUploadScores() && !AdjustSync::IsSyncDataChanged()) {
Expand Down

0 comments on commit 180be6e

Please sign in to comment.