From 0251c75534b9158d093c1a56a8bf11c81d0fad2e Mon Sep 17 00:00:00 2001 From: poco0317 Date: Fri, 30 Nov 2018 20:40:18 -0600 Subject: [PATCH] dont fart (utilize new HasReplayData utility for OnlineHighScore; remove unneeded stuff) --- Themes/Til Death/BGAnimations/superscoreboard.lua | 2 +- src/DownloadManager.cpp | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/Themes/Til Death/BGAnimations/superscoreboard.lua b/Themes/Til Death/BGAnimations/superscoreboard.lua index ba9ee48a92..2d9375c0aa 100644 --- a/Themes/Til Death/BGAnimations/superscoreboard.lua +++ b/Themes/Til Death/BGAnimations/superscoreboard.lua @@ -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("") diff --git a/src/DownloadManager.cpp b/src/DownloadManager.cpp index 0a6b3bca30..30fdfc1d04 100644 --- a/src/DownloadManager.cpp +++ b/src/DownloadManager.cpp @@ -2445,16 +2445,6 @@ class LunaDownloadManager : public Luna 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); @@ -2488,7 +2478,6 @@ class LunaDownloadManager : public Luna ADD_METHOD(ToggleTopScoresOnlyFilter); ADD_METHOD(GetTopScoresOnlyFilter); ADD_METHOD(SendReplayDataForOldScore); - ADD_METHOD(Fart); ADD_METHOD(Logout); } };