进房固定1.26秒cd
This commit is contained in:
@@ -184,7 +184,7 @@ function NET.fetchRoom()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
function NET.createRoom(roomType,name)
|
function NET.createRoom(roomType,name)
|
||||||
if NET.lock("enterRoom",3)then
|
if NET.lock("enterRoom",1.26)then
|
||||||
WS.send("play",JSON.encode{
|
WS.send("play",JSON.encode{
|
||||||
action=1,
|
action=1,
|
||||||
data={
|
data={
|
||||||
@@ -197,7 +197,7 @@ function NET.createRoom(roomType,name)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
function NET.enterRoom(roomID,password)
|
function NET.enterRoom(roomID,password)
|
||||||
if NET.lock("enterRoom",3)then
|
if NET.lock("enterRoom",1.26)then
|
||||||
NET.rid=roomID
|
NET.rid=roomID
|
||||||
WS.send("play",JSON.encode{
|
WS.send("play",JSON.encode{
|
||||||
action=2,
|
action=2,
|
||||||
@@ -370,7 +370,6 @@ function NET.updateWS_play()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
loadGame("netBattle",true,true)
|
loadGame("netBattle",true,true)
|
||||||
NET.unlock("enterRoom")
|
|
||||||
else
|
else
|
||||||
--Load other players
|
--Load other players
|
||||||
ins(PLY_NET,{
|
ins(PLY_NET,{
|
||||||
|
|||||||
Reference in New Issue
Block a user