瀏覽代碼

New fix attempt

tags/online
madiwka3 4 年之前
父節點
當前提交
fa636d8f34
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. +4
    -3
      main.lua

+ 4
- 3
main.lua 查看文件

@@ -724,7 +724,7 @@ function love.update(dt)
end
if globalState == "nettest" then
print("Confcode: " .. confirmation)
--print("Confcode: " .. confirmation)
if confirmation == "N" then
basegame(dt)
end
@@ -784,6 +784,7 @@ function nettest(dt)
local data
local datanumtest = 0
data = udp:receive()
print("ReceivedINFO: " .. data)
repeat
datanumtest = datanumtest + 1
print("LATENCY: " .. tostring(datanumtest))
@@ -826,8 +827,8 @@ function clienttest(dt)
repeat
datanumtest = datanumtest + 1
print("LATENCY: " .. tostring(datanumtest))
data = udp:receive()
data = udp:receive()
print("RECEIVED DATA: " .. data)
if data then
print(data)


Loading…
取消
儲存