整理代码,保留cc的原始dest数据

This commit is contained in:
MrZ626
2021-03-05 17:34:53 +08:00
parent b6cf044441
commit 9714ba1113
2 changed files with 2 additions and 7 deletions

View File

@@ -511,7 +511,7 @@ function Player.lock(P)
local x=P.curX+j-1
if dest then
for k=1,#dest do
if x==dest[k][1]and y==dest[k][2]then
if x==dest[k][1]+1 and y==dest[k][2]+1 then
rem(dest,k)
goto success
end