From 6fd2e9e11a6816e6b2719c888dd6df6cd283e6d5 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 11 Nov 2020 17:20:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=B3=E9=97=AD=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E5=90=8E=E6=89=93=E5=BC=80=E6=B8=B8=E6=88=8F=E4=BC=9A?= =?UTF-8?q?=E8=8A=B1=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/bg.lua | 4 ++-- Zframework/init.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Zframework/bg.lua b/Zframework/bg.lua index 908c98b2..63af4324 100644 --- a/Zframework/bg.lua +++ b/Zframework/bg.lua @@ -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 diff --git a/Zframework/init.lua b/Zframework/init.lua index df61209f..124f6c14 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -477,7 +477,7 @@ function love.run() else SCN.init("load") end - BG.set("none") + BG.set("none",true) return function() local _