修复关闭背景后打开游戏会花屏
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -477,7 +477,7 @@ function love.run()
|
||||
else
|
||||
SCN.init("load")
|
||||
end
|
||||
BG.set("none")
|
||||
BG.set("none",true)
|
||||
|
||||
return function()
|
||||
local _
|
||||
|
||||
Reference in New Issue
Block a user