瀏覽代碼

New fix attempt

tags/online
madiwka3 4 年之前
父節點
當前提交
bcb188c6a9
共有 1 個檔案被更改,包括 4 行新增3 行删除
  1. +4
    -3
      main.lua

+ 4
- 3
main.lua 查看文件

@@ -784,12 +784,13 @@ function nettest(dt)
local data
local datanumtest = 0
data = udp:receive()
print("ReceivedINFO: " .. data)
repeat
datanumtest = datanumtest + 1
print("LATENCY: " .. tostring(datanumtest))
data = udp:receive()
if data then
print("ReceivedINFO: " .. data)
confirmation = "N"
local p = split(data, '|')
if p[3] ~= "CLIENT" then
@@ -828,9 +829,9 @@ function clienttest(dt)
datanumtest = datanumtest + 1
print("LATENCY: " .. tostring(datanumtest))
data = udp:receive()
print("RECEIVED DATA: " .. data)
if data then
print(data)
print("RECEIVED DATA: " .. data)
print("SENT TO SERVER:" .. lastSentKey)
confirmation = "N"


Loading…
取消
儲存