Skip to content

Commit

Permalink
Stop PlayerOptions from requesting the leaderboard because we can't g…
Browse files Browse the repository at this point in the history
…rab the wheel
  • Loading branch information
poco0317 committed Dec 1, 2018
1 parent 0251c75 commit 436962e
Showing 1 changed file with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,19 @@ local moped
-- You know, if we can see the place where the scores should be.
local function updateLeaderBoardForCurrentChart()
local top = SCREENMAN:GetTopScreen()
if top:GetMusicWheel():IsSettled() and ((getTabIndex() == 2 and nestedTab == 2) or collapsed) then
local steps = GAMESTATE:GetCurrentSteps(PLAYER_1)
if steps then
DLMAN:RequestChartLeaderBoardFromOnline(
steps:GetChartKey(),
function(leaderboard)
moped:playcommand("SetFromLeaderboard", leaderboard)
end
)
else
moped:playcommand("SetFromLeaderboard", {})
if top:GetName() == "ScreenSelectMusic" or top:GetName() == "ScreenNetSelectMusic" then
if top:GetMusicWheel():IsSettled() and ((getTabIndex() == 2 and nestedTab == 2) or collapsed) then
local steps = GAMESTATE:GetCurrentSteps(PLAYER_1)
if steps then
DLMAN:RequestChartLeaderBoardFromOnline(
steps:GetChartKey(),
function(leaderboard)
moped:playcommand("SetFromLeaderboard", leaderboard)
end
)
else
moped:playcommand("SetFromLeaderboard", {})
end
end
end
end
Expand Down

0 comments on commit 436962e

Please sign in to comment.