disable spba if browser is open

This commit is contained in:
Not 2022-08-30 20:47:50 +02:00
parent 554e329194
commit 45cefc786e
1 changed files with 7 additions and 2 deletions

View File

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