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

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(...) BG.event(...)
end end
end end
function BG.set(background) function BG.set(background,force)
if background==BG.cur or not SETTING.bg then return end if background==BG.cur or not(SETTING.bg or force)then return end
BG.discard() BG.discard()
background=BGlist[background] background=BGlist[background]
if not background then if not background then

View File

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