From 58db8402001eab71823c1f652dbea05e68f995a0 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Tue, 9 Feb 2021 18:29:52 +0800 Subject: [PATCH] =?UTF-8?q?sfx=E6=A8=A1=E5=9D=97=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/sfx.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zframework/sfx.lua b/Zframework/sfx.lua index 7895c63c..e52e5a77 100644 --- a/Zframework/sfx.lua +++ b/Zframework/sfx.lua @@ -30,7 +30,7 @@ function SFX.init(list) SFX.play(s,v,(P.curX+P.sc[2]-5.5)*.15) end function SFX.play(s,vol,pos) - if SETTING.sfx==0 then return end + if SETTING.sfx==0 or vol==0 then return end local S=Sources[s]--Source list if not S then return end local n=1