diff --git a/src/Etterna/Singletons/DownloadManager.cpp b/src/Etterna/Singletons/DownloadManager.cpp index c6ac1d8969..6e5d5ad7dd 100644 --- a/src/Etterna/Singletons/DownloadManager.cpp +++ b/src/Etterna/Singletons/DownloadManager.cpp @@ -1730,6 +1730,12 @@ DownloadManager::RequestChartLeaderBoard(const string& chartkey, tmp.letgo = judgements["letGoHold"].GetInt(); else tmp.letgo = 0; + if (judgements.HasMember("missedHold") && + judgements["missedHold"].IsInt()) + tmp.holdmiss = judgements["missedHold"].GetInt(); + else + tmp.holdmiss = 0; + } if (score.HasMember("datetime") && score["datetime"].IsString()) tmp.datetime.FromString(score["datetime"].GetString()); @@ -1821,6 +1827,7 @@ DownloadManager::RequestChartLeaderBoard(const string& chartkey, hs.SetHoldNoteScore(HNS_Held, tmp.held); hs.SetHoldNoteScore(HNS_LetGo, tmp.letgo); + hs.SetHoldNoteScore(HNS_Missed, tmp.holdmiss); FOREACH_ENUM(Skillset, ss) hs.SetSkillsetSSR(ss, tmp.SSRs[ss]); diff --git a/src/Etterna/Singletons/DownloadManager.h b/src/Etterna/Singletons/DownloadManager.h index ad81355177..9603f3d99d 100644 --- a/src/Etterna/Singletons/DownloadManager.h +++ b/src/Etterna/Singletons/DownloadManager.h @@ -143,6 +143,7 @@ class OnlineScore int marvelous{ 0 }; int minehits{ 0 }; int held{ 0 }; + int holdmiss{ 0 }; std::string songId; int letgo{ 0 }; bool valid{ false };