暴力修复物理hold可能导致的一个错误,能用,不懂,不理解,but it works,等重构

This commit is contained in:
MrZ_26
2022-01-30 14:20:27 +08:00
parent 1da6c0c8a9
commit fa3d7ff199

View File

@@ -1237,7 +1237,7 @@ function Player:hold_norm(ifpre)
local C,H=self.cur,self.holdQueue[1]
self.ctrlCount=0
if ENV.phyHold and C and not ifpre then--Physical hold
if ENV.phyHold and C and H and not ifpre then--Physical hold
local x,y=self.curX,self.curY
x=x+(#C.bk[1]-#H.bk[1])*.5
y=y+(#C.bk-#H.bk)*.5