From 86bc261042f66583a7a84282b5e9d32352477f3c Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 25 Dec 2020 23:26:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=9D=9E20G=E9=AB=98?= =?UTF-8?q?=E9=87=8D=E5=8A=9B=E5=9D=97=E7=A9=BF=E6=A8=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/update.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parts/player/update.lua b/parts/player/update.lua index d287cd7a..26f44cb6 100644 --- a/parts/player/update.lua +++ b/parts/player/update.lua @@ -277,7 +277,8 @@ local function update_alive(P,dt) end P.curY=P.curY-1 else - D=max(1/D,P.curY-P.ghoY)--Fall dist, max to dist between cur/gho + D=1/D--Fall dist + if D>P.curY-P.ghoY then D=P.curY-P.ghoY end if ENV.moveFX and ENV.block then for _=1,D do P:createMoveFX("down")