修改获取对局种子的api
This commit is contained in:
@@ -725,9 +725,8 @@ function NET.wsCallBack.match_ready()-- not used
|
|||||||
end
|
end
|
||||||
function NET.wsCallBack.match_start(body)
|
function NET.wsCallBack.match_start(body)
|
||||||
TASK.lock('netPlaying')
|
TASK.lock('netPlaying')
|
||||||
if body.data then
|
NET.seed=body.data and body.data.seed
|
||||||
NET.seed=body.data
|
if not NET.seed then
|
||||||
else
|
|
||||||
NET.seed=0
|
NET.seed=0
|
||||||
MES.new("error",'No seed received')
|
MES.new("error",'No seed received')
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user