* 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
|
||||
|
||||
function drawIrLeaderboard()
|
||||
if not IRData.Active then
|
||||
return;
|
||||
end
|
||||
|
||||
gfx.LoadSkinFont('Digital-Serial-Bold.ttf')
|
||||
gfx.FontSize(26)
|
||||
|
||||
|
@ -670,6 +674,10 @@ function drawSearch()
|
|||
end
|
||||
|
||||
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.
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue