修复关闭背景后打开游戏会花屏

This commit is contained in:
MrZ626
2020-11-11 17:20:49 +08:00
parent 10f96a360b
commit 6fd2e9e11a
2 changed files with 3 additions and 3 deletions

View File

@@ -17,8 +17,8 @@ function BG.send(...)
BG.event(...)
end
end
function BG.set(background)
if background==BG.cur or not SETTING.bg then return end
function BG.set(background,force)
if background==BG.cur or not(SETTING.bg or force)then return end
BG.discard()
background=BGlist[background]
if not background then

View File

@@ -477,7 +477,7 @@ function love.run()
else
SCN.init("load")
end
BG.set("none")
BG.set("none",true)
return function()
local _