make CC update field *after* locking

This commit is contained in:
Gompyn
2020-07-31 17:19:36 +08:00
parent 71130bbced
commit 5342d4f6d6

View File

@@ -1274,6 +1274,7 @@ function player.freshLockDelay(P)
end
function player.lock(P)
local dest = P.AI_dest
local has_dest = (dest ~= nil)
for i=1,P.r do
local y=P.curY+i-1
if not P.field[y]then P.field[y],P.visTime[y]=freeRow.get(0),freeRow.get(0)end
@@ -1291,13 +1292,15 @@ function player.lock(P)
end
end
if #dest ~= original_length - 1 then
CC_updateField(P)
dest = nil
end
end
end
end
end
if has_dest and not dest then
CC_updateField(P)
end
end
function player.spin(P,d,ifpre)
local iki=P.RS[P.cur.id]