修复房间选择界面光标越界
This commit is contained in:
@@ -52,7 +52,7 @@ function scene.keyDown(k)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif k=="return"then
|
elseif k=="return"then
|
||||||
if NET.getlock("fetchRoom")then return end
|
if NET.getlock("fetchRoom")or not NET.roomList[selected]then return end
|
||||||
if NET.roomList[selected].private then
|
if NET.roomList[selected].private then
|
||||||
LOG.print("Can't enter private room now")
|
LOG.print("Can't enter private room now")
|
||||||
return
|
return
|
||||||
@@ -72,6 +72,9 @@ function scene.update(dt)
|
|||||||
fetchRoom()
|
fetchRoom()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if #NET.roomList>0 and not NET.roomList[selected]then
|
||||||
|
selected=#NET.roomList
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function scene.draw()
|
function scene.draw()
|
||||||
|
|||||||
Reference in New Issue
Block a user