联网推进39,修改对战房间进房消息

This commit is contained in:
MrZ626
2021-02-08 14:37:23 +08:00
parent 7c446872cb
commit 93058057ec
4 changed files with 50 additions and 44 deletions

View File

@@ -387,7 +387,7 @@ function update.remote_alive(P,dt)
elseif event<=64 then--Release key
P:releaseKey(event-32)
elseif event>0x2000000000000 then--Sending lines
local sid=event%0x100
local sid=tostring(event%0x100)
local amount=int(event/0x100)%0x100
local time=int(event/0x10000)%0x10000
local line=int(event/0x100000000)%0x10000
@@ -403,7 +403,7 @@ function update.remote_alive(P,dt)
end
elseif event>0x1000000000000 then--Receiving lines
local L=PLAYERS.alive
local sid=event%0x100
local sid=tostring(event%0x100)
for i=1,#L do
if L[i].subID==sid then
P:receive(