暴力修复物理hold可能导致的一个错误,能用,不懂,不理解,but it works,等重构
This commit is contained in:
@@ -1237,7 +1237,7 @@ function Player:hold_norm(ifpre)
|
|||||||
local C,H=self.cur,self.holdQueue[1]
|
local C,H=self.cur,self.holdQueue[1]
|
||||||
self.ctrlCount=0
|
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
|
local x,y=self.curX,self.curY
|
||||||
x=x+(#C.bk[1]-#H.bk[1])*.5
|
x=x+(#C.bk[1]-#H.bk[1])*.5
|
||||||
y=y+(#C.bk-#H.bk)*.5
|
y=y+(#C.bk-#H.bk)*.5
|
||||||
|
|||||||
Reference in New Issue
Block a user