Skip to content

Commit

Permalink
Add HasReplayData convenience for OnlineHighScore
Browse files Browse the repository at this point in the history
this implementation is shaky i think
  • Loading branch information
poco0317 committed Dec 1, 2018
1 parent d1c636c commit 537ed28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/DownloadManager.cpp
Expand Up @@ -1588,6 +1588,7 @@ DownloadManager::RequestChartLeaderBoard(string chartkey, LuaReference ref)
hs.scoreid = tmp.scoreid;
hs.avatar = tmp.avatar;
hs.countryCode = tmp.countryCode;
hs.hasReplay = tmp.hasReplay;

vec.emplace_back(tmp);
}
Expand Down
3 changes: 3 additions & 0 deletions src/DownloadManager.h
Expand Up @@ -123,6 +123,9 @@ class OnlineTopScore
};
struct OnlineHighScore : HighScore
{
public:
bool hasReplay;
bool HasReplayData() override { return hasReplay; }
};
class OnlineScore
{
Expand Down

0 comments on commit 537ed28

Please sign in to comment.