调整table扩展模块相关代码

This commit is contained in:
MrZ626
2021-04-28 17:22:35 +08:00
parent 1fc4dae61b
commit c8db07a8c8
6 changed files with 18 additions and 18 deletions

View File

@@ -71,7 +71,7 @@ if type(_CC)=="table"then
end
CC.updateField(P)
TABLE.clear(P.holdQueue)
TABLE.cut(P.holdQueue)
P.holdTime=P.gameEnv.holdCount
P.cur=rem(P.nextQueue,1)

View File

@@ -180,7 +180,7 @@ function destroyPlayers()--Destroy all player objects, restore freerows and free
end
PLAYERS[i]=nil
end
TABLE.clear(PLY_ALIVE)
TABLE.cut(PLY_ALIVE)
collectgarbage()
end
function pauseGame()

View File

@@ -351,7 +351,7 @@ function NET.updateWS_play()
elseif res.action==2 then--Player join
if res.type=="Self"then
--Create room
TABLE.clear(PLY_NET)
TABLE.cut(PLY_NET)
if d.players then
for _,p in next,d.players do
ins(PLY_NET,p.uid==USER.uid and 1 or #PLY_NET+1,{

View File

@@ -1748,7 +1748,7 @@ function Player:lose(force)
if self.AI_mode=="CC"then
CC.destroy(self.AI_bot)
TABLE.clear(self.holdQueue)
TABLE.cut(self.holdQueue)
self:loadAI(self.AIdata)
end

View File

@@ -31,7 +31,7 @@ local typeColor={
}
local function getList()return result[1]and result or dict end
local function clearResult()
TABLE.clear(result)
TABLE.cut(result)
selected,scrollPos=1,0
waiting,lastSearch=0,false
end