make CC update field *after* locking
This commit is contained in:
@@ -1274,6 +1274,7 @@ function player.freshLockDelay(P)
|
|||||||
end
|
end
|
||||||
function player.lock(P)
|
function player.lock(P)
|
||||||
local dest = P.AI_dest
|
local dest = P.AI_dest
|
||||||
|
local has_dest = (dest ~= nil)
|
||||||
for i=1,P.r do
|
for i=1,P.r do
|
||||||
local y=P.curY+i-1
|
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
|
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
|
||||||
end
|
end
|
||||||
if #dest ~= original_length - 1 then
|
if #dest ~= original_length - 1 then
|
||||||
CC_updateField(P)
|
|
||||||
dest = nil
|
dest = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if has_dest and not dest then
|
||||||
|
CC_updateField(P)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
function player.spin(P,d,ifpre)
|
function player.spin(P,d,ifpre)
|
||||||
local iki=P.RS[P.cur.id]
|
local iki=P.RS[P.cur.id]
|
||||||
|
|||||||
Reference in New Issue
Block a user