From d72f4451459e1d251dfec59cdfbaca4e31c5d974 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 10 Sep 2020 12:05:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BD=AF=E9=99=8Dn=E6=A0=BC?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player.lua | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/parts/player.lua b/parts/player.lua index 0af4478d..3b3aa78c 100644 --- a/parts/player.lua +++ b/parts/player.lua @@ -2786,8 +2786,7 @@ function player.act.insRight(P,auto) end end function player.act.insDown(P) - if not P.cur then return end - if P.curY>P.imgY then + if P.cur and P.curY>P.imgY then if P.gameEnv.dropFX and P.gameEnv.block and P.curY-P.imgY-P.r>-1 then P:createDropFX(P.curX,P.curY-1,P.c,P.curY-P.imgY-P.r+1) end @@ -2811,9 +2810,8 @@ function player.act.down1(P) end end function player.act.down4(P) - if not P.cur then return end - if P.curY>P.imgY then - local y=max(P.cur-4,P.imgY) + if P.cur and P.curY>P.imgY then + local y=max(P.curY-4,P.imgY) if P.gameEnv.dropFX and P.gameEnv.block and P.curY-y-P.r>-1 then P:createDropFX(P.curX,P.curY-1,P.c,P.curY-y-P.r+1) end @@ -2823,9 +2821,8 @@ function player.act.down4(P) end end function player.act.down10(P) - if not P.cur then return end - if P.curY>P.imgY then - local y=max(P.cur-10,P.imgY) + if P.cur and P.curY>P.imgY then + local y=max(P.curY-10,P.imgY) if P.gameEnv.dropFX and P.gameEnv.block and P.curY-y-P.r>-1 then P:createDropFX(P.curX,P.curY-1,P.c,P.curY-y-P.r+1) end