PLAYERS.alive拿出来作为单独变量

This commit is contained in:
MrZ626
2021-03-29 11:40:36 +08:00
parent c0736132b1
commit ee02013fa5
19 changed files with 54 additions and 53 deletions

View File

@@ -398,7 +398,7 @@ function update.remote_alive(P,dt)
local amount=int(event/0x100)%0x100
local time=int(event/0x10000)%0x10000
local line=int(event/0x100000000)%0x10000
local L=PLAYERS.alive
local L=PLY_ALIVE
for i=1,#L do
if L[i].subID==sid then
P:attack(L[i],amount,time,line,true)
@@ -409,7 +409,7 @@ function update.remote_alive(P,dt)
end
end
elseif event>0x1000000000000 then--Receiving lines
local L=PLAYERS.alive
local L=PLY_ALIVE
local sid=tostring(event%0x100)
for i=1,#L do
if L[i].subID==sid then