From 89af52b14b931afa51f76e068082c18e61c984d3 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 18 Jun 2021 15:18:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D1/30=E7=9A=84=E6=A6=82?= =?UTF-8?q?=E7=8E=87=E6=AD=BB=E4=BA=A1=E5=90=8E=E6=BF=92=E6=AD=BB=E9=9F=B3?= =?UTF-8?q?=E6=95=88=E9=94=99=E8=AF=AF=E6=92=AD=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/gametoolfunc.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parts/gametoolfunc.lua b/parts/gametoolfunc.lua index f161450d..358ba6b5 100644 --- a/parts/gametoolfunc.lua +++ b/parts/gametoolfunc.lua @@ -539,12 +539,12 @@ do--function checkWarning() _=max(_-.026,0) end GAME.warnLVL=_ + if GAME.warnLVL>1.126 and P1.frameRun%30==0 then + SFX.fplay('warning',SETTING.sfx_warn) + end elseif GAME.warnLVL>0 then GAME.warnLVL=max(GAME.warnLVL-.026,0) end - if GAME.warnLVL>1.126 and P1.frameRun%30==0 then - SFX.fplay('warning',SETTING.sfx_warn) - end end end