修复1/30的概率死亡后濒死音效错误播放

This commit is contained in:
MrZ626
2021-06-18 15:18:32 +08:00
parent aea6840263
commit 89af52b14b

View File

@@ -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