From 45cefc786ed7610776041bcab3b0c7793d293362 Mon Sep 17 00:00:00 2001 From: Not Date: Tue, 30 Aug 2022 20:47:50 +0200 Subject: [PATCH] disable spba if browser is open --- leaderboard.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/leaderboard.lua b/leaderboard.lua index 5e13e98..2920a71 100644 --- a/leaderboard.lua +++ b/leaderboard.lua @@ -1485,9 +1485,14 @@ local function think() if p.exiting then p.exiting = $ + 1 end - end - if p.lives == 0 then + -- disable spba hud + if server.SPBAdone then + server.SPBArunning = false + p.pflags = $ & !(PF_TIMEOVER) + p.exiting = 100 + end + elseif p.lives == 0 then drawState = DS_SCROLL end