修复联网对战时“退出”操作相关的一些问题
This commit is contained in:
@@ -112,7 +112,7 @@ end
|
|||||||
function scene.gamepadDown(key)
|
function scene.gamepadDown(key)
|
||||||
if key=="back"then
|
if key=="back"then
|
||||||
if TIME()-lastBackTime<1 then
|
if TIME()-lastBackTime<1 then
|
||||||
SCN.back()
|
NET.signal_quit()
|
||||||
else
|
else
|
||||||
lastBackTime=TIME()
|
lastBackTime=TIME()
|
||||||
LOG.print(text.sureQuit,COLOR.O)
|
LOG.print(text.sureQuit,COLOR.O)
|
||||||
@@ -201,7 +201,10 @@ function scene.socketRead(cmd,d)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function scene.update(dt)
|
function scene.update(dt)
|
||||||
if NET.checkPlayDisconn()then SCN.back()end
|
if NET.checkPlayDisconn()then
|
||||||
|
NET.wsclose_stream()
|
||||||
|
SCN.back()
|
||||||
|
end
|
||||||
if not playing then return end
|
if not playing then return end
|
||||||
|
|
||||||
local P1=PLAYERS[1]
|
local P1=PLAYERS[1]
|
||||||
|
|||||||
Reference in New Issue
Block a user