整理代码

This commit is contained in:
MrZ626
2021-06-06 00:59:02 +08:00
parent 5ef18545f8
commit 15de6ad437
2 changed files with 22 additions and 17 deletions

View File

@@ -220,20 +220,6 @@ function scene.socketRead(cmd,d)
elseif cmd=='finish'then
playing=false
love.keyboard.setKeyRepeat(true)
elseif cmd=='stream'then
if d.uid~=USER.uid then
for _,P in next,PLAYERS do
if P.uid==d.uid then
local res,stream=pcall(love.data.decode,'string','base64',d.stream)
if res then
DATA.pumpRecording(stream,P.stream)
else
LOG.print("Bad stream from "..P.username.."#"..P.uid,10)
end
break
end
end
end
end
end