From 5342d4f6d61a948f5dde97ca0067277b19c61665 Mon Sep 17 00:00:00 2001 From: Gompyn Date: Fri, 31 Jul 2020 17:19:36 +0800 Subject: [PATCH] make CC update field *after* locking --- parts/player.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/parts/player.lua b/parts/player.lua index 970f57e3..2b243a07 100644 --- a/parts/player.lua +++ b/parts/player.lua @@ -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]