Skip to content

Commit

Permalink
only load mp leaderboard if connected to mp and on netgameplay
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Nov 30, 2018
1 parent 12807ae commit 9636b74
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
local allowedCustomization = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).CustomizeGameplay
local leaderboardEnabled =
NSMAN:IsETTP() or (playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).leaderboardEnabled and DLMAN:IsLoggedIn())

(NSMAN:IsETTP() and SCREENMAN:GetTopScreen():GetName() == "ScreenNetStageInformation") or (playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).leaderboardEnabled and DLMAN:IsLoggedIn())
local entryActors = {}
local t =
Widg.Container {
Expand Down Expand Up @@ -62,7 +61,7 @@ function scoreUsingMultiScore(idx)
}
end
local onlineScores = {}
local isMulti = NSMAN:IsETTP()
local isMulti = NSMAN:IsETTP() and SCREENMAN:GetTopScreen():GetName() == "ScreenNetStageInformation"
if isMulti then
multiScores = NSMAN:GetGameplayLeaderboard()
for i = 1, 5 do
Expand Down

0 comments on commit 9636b74

Please sign in to comment.