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