点击联网游戏时无网络的提示更加清晰

This commit is contained in:
MrZ626
2021-04-10 16:51:21 +08:00
parent 906211f0f5
commit b757055525
9 changed files with 15 additions and 7 deletions

View File

@@ -2,6 +2,7 @@ local data=love.data
local ins,rem=table.insert,table.remove
local WS,TIME=WS,TIME
local NET={
connected=false,
allow_online=false,
roomList={},
accessToken=false,
@@ -245,9 +246,8 @@ function NET.updateWS_app()
else
local res=_parse(message)
if res then
if VERSION_CODE>=res.lowest then
NET.allow_online=true
end
NET.connected=true
NET.allow_online=VERSION_CODE>=res.lowest
if VERSION_CODE<res.newestCode then
LOG.print(text.oldVersion:gsub("$1",res.newestName),180,COLOR.sky)
end