diff --git a/Zframework/scene.lua b/Zframework/scene.lua index 4086d65f..0a53646c 100644 --- a/Zframework/scene.lua +++ b/Zframework/scene.lua @@ -20,6 +20,7 @@ function sceneInit.load() sceneTemp={ phase=1,--Loading stage cur=1,--Counter + tar=#VOC.name,--Loading bar length(current) tip=setting.appLock or require("parts/getTip"), list={ #VOC.name, diff --git a/parts/freeRow.lua b/parts/freeRow.lua index 52a60557..a67a25e8 100644 --- a/parts/freeRow.lua +++ b/parts/freeRow.lua @@ -1,6 +1,6 @@ local freeRow={} local L={}--Storage -local _=0--Lenth +local _=0--Length function freeRow.reset(num) if num<_ then for i=_,num+1,-1 do diff --git a/parts/player.lua b/parts/player.lua index 659ff814..bcf2242e 100644 --- a/parts/player.lua +++ b/parts/player.lua @@ -1427,8 +1427,8 @@ function player.freshBlock(P,keepGhost,control,system) end end function player.lock(P) - local dest = P.AI_dest - local has_dest = (dest ~= nil) + 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 @@ -1436,17 +1436,17 @@ function player.lock(P) if P.cur.bk[i][j]then P.field[y][P.curX+j-1]=P.cur.color P.visTime[y][P.curX+j-1]=P.showTime - local x = P.curX+j-1 + local x=P.curX+j-1 if dest then - local original_length = #dest + local original_length=#dest for k=1,original_length do - if x == dest[k][1] and y == dest[k][2] then + if x==dest[k][1]and y==dest[k][2]then rem(dest, k) break end end - if #dest ~= original_length - 1 then - dest = nil + if #dest~=original_length-1 then + dest=nil end end end