Skip to content

Commit

Permalink
dont fart
Browse files Browse the repository at this point in the history
(utilize new HasReplayData utility for OnlineHighScore; remove unneeded stuff)
  • Loading branch information
poco0317 committed Dec 1, 2018
1 parent 537ed28 commit 0251c75
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion Themes/Til Death/BGAnimations/superscoreboard.lua
Expand Up @@ -475,7 +475,7 @@ local function makeScoreDisplay(i)
end,
DisplayCommand = function(self)
if GAMESTATE:GetCurrentSteps(PLAYER_1) then
if DLMAN:Fart(GAMESTATE:GetCurrentSteps(PLAYER_1):GetChartKey(), ind + i) then
if hs:HasReplayData() then
self:settext("Watch")
else
self:settext("")
Expand Down
11 changes: 0 additions & 11 deletions src/DownloadManager.cpp
Expand Up @@ -2445,16 +2445,6 @@ class LunaDownloadManager : public Luna<DownloadManager>
DLMAN->UploadScoreWithReplayDataFromDisk(SArg(1));
return 0;
}
static int Fart(T* p, lua_State* L)
{
RString ck = SArg(1);
size_t idx = IArg(2) - 1;
if (idx < DLMAN->chartLeaderboards[ck].size())
lua_pushboolean(L, DLMAN->chartLeaderboards[ck][idx].hasReplay);
else
lua_pushboolean(L, false);
return 1;
}
LunaDownloadManager()
{
ADD_METHOD(GetCountryCodes);
Expand Down Expand Up @@ -2488,7 +2478,6 @@ class LunaDownloadManager : public Luna<DownloadManager>
ADD_METHOD(ToggleTopScoresOnlyFilter);
ADD_METHOD(GetTopScoresOnlyFilter);
ADD_METHOD(SendReplayDataForOldScore);
ADD_METHOD(Fart);
ADD_METHOD(Logout);
}
};
Expand Down

0 comments on commit 0251c75

Please sign in to comment.