Skip to content

Commit

Permalink
Don't save profile exiting Evaluation if recent score wasn't live
Browse files Browse the repository at this point in the history
should save a tiny bit of time for big profiles viewing eval screens and stuff
  • Loading branch information
poco0317 committed Nov 24, 2019
1 parent feaa753 commit da260c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Etterna/Screen/Others/ScreenProfileSave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "Etterna/Singletons/ScreenManager.h"
#include "ScreenProfileSave.h"
#include "Etterna/Singletons/DownloadManager.h"
#include "Etterna/Singletons/StatsManager.h"

REGISTER_SCREEN_CLASS(ScreenProfileSave);

Expand All @@ -23,7 +24,10 @@ ScreenProfileSave::Continue()
{
DLMAN->chartLeaderboards.clear(); // clear cached leaderboard scores when
// saving after gameplay -mina
GAMESTATE->SavePlayerProfiles();
if (!STATSMAN->m_vPlayedStageStats.empty())
if (STATSMAN->m_vPlayedStageStats.back().m_bLivePlay)
GAMESTATE->SavePlayerProfiles();

SCREENMAN->ZeroNextUpdate();

StartTransitioningScreen(SM_GoToNextScreen);
Expand Down

0 comments on commit da260c2

Please sign in to comment.