From 72c8b21cf4bd3d57328ecaadb36441f8ec554b12 Mon Sep 17 00:00:00 2001 From: FajsiEx Date: Thu, 16 Dec 2021 18:29:04 +0100 Subject: [PATCH] * don't try to request or draw the IR leaderboard if IR is not active --- scripts/songselect/songwheel.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/songselect/songwheel.lua b/scripts/songselect/songwheel.lua index aa12c95..1991fec 100644 --- a/scripts/songselect/songwheel.lua +++ b/scripts/songselect/songwheel.lua @@ -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