* don't try to request or draw the IR leaderboard if IR is not active
This commit is contained in:
parent
c32876090c
commit
72c8b21cf4
|
@ -544,6 +544,10 @@ function drawLocalLeaderboard(diff)
|
||||||
end
|
end
|
||||||
|
|
||||||
function drawIrLeaderboard()
|
function drawIrLeaderboard()
|
||||||
|
if not IRData.Active then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
gfx.LoadSkinFont('Digital-Serial-Bold.ttf')
|
gfx.LoadSkinFont('Digital-Serial-Bold.ttf')
|
||||||
gfx.FontSize(26)
|
gfx.FontSize(26)
|
||||||
|
|
||||||
|
@ -670,6 +674,10 @@ function drawSearch()
|
||||||
end
|
end
|
||||||
|
|
||||||
function refreshIrLeaderboard(deltaTime)
|
function refreshIrLeaderboard(deltaTime)
|
||||||
|
if not IRData.Active then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
if irRequestStatus ~= 1 then -- Only continue if the leaderboard is requesteded, but not loading or loaded.
|
if irRequestStatus ~= 1 then -- Only continue if the leaderboard is requesteded, but not loading or loaded.
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue