修复关闭背景后打开游戏会花屏
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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 _
|
||||||
|
|||||||
Reference in New Issue
Block a user