* don't try to request or draw the IR leaderboard if IR is not active

This commit is contained in:
FajsiEx 2021-12-16 18:29:04 +01:00
parent c32876090c
commit 72c8b21cf4
1 changed files with 8 additions and 0 deletions

View File

@ -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