From 2a9549b1065ed1fdf2435e9960a23b448518c9a7 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 28 Oct 2021 14:49:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E5=9C=BA=E5=9C=B0?= =?UTF-8?q?=E6=B6=88=E8=A1=8C=E6=8C=89=E9=92=AE=E5=8F=AF=E4=BB=A5=E6=B6=88?= =?UTF-8?q?=E9=99=A420=E8=A1=8C=E4=BB=A5=E4=B8=8A=E7=9A=84=E9=83=A8?= =?UTF-8?q?=E5=88=86=20=E7=A7=BB=E9=99=A4=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/custom_field.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/parts/scenes/custom_field.lua b/parts/scenes/custom_field.lua index d70472a7..60c594ab 100644 --- a/parts/scenes/custom_field.lua +++ b/parts/scenes/custom_field.lua @@ -115,10 +115,7 @@ local function _pDraw() penPath={} penMode=0 - while #F>0 and isEmpty(F[#F])do - rem(F) - end - print(#F) + while #F>0 and isEmpty(F[#F])do rem(F)end end function scene.sceneInit() @@ -201,7 +198,7 @@ function scene.keyDown(key) elseif key=="l"then local F=FIELD[page] local cleared=false - for i=20,1,-1 do + for i=#F,1,-1 do for j=1,10 do if F[i][j]<=0 then goto CONTINUE_notFull end end