Skip to content

Commit

Permalink
Check the score sync pref before uploading scores on login
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed Feb 18, 2018
1 parent 3715c9b commit f528375
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DownloadManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,8 @@ void DownloadManager::StartSession(string user, string pass)
DLMAN->RefreshUserData();
FOREACH_ENUM(Skillset, ss)
DLMAN->RefreshTop25(ss);
DLMAN->UploadScores();
if(DLMAN->ShouldUploadScores())
DLMAN->UploadScores();
if (GAMESTATE->m_pCurSteps[PLAYER_1] != nullptr)
DLMAN->RequestChartLeaderBoard(GAMESTATE->m_pCurSteps[PLAYER_1]->GetChartKey());
MESSAGEMAN->Broadcast("Login");
Expand Down

0 comments on commit f528375

Please sign in to comment.