Browse Source

New fix attempt

tags/online
madiwka3 4 years ago
parent
commit
fa636d8f34
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      main.lua

+ 4
- 3
main.lua View File

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


Loading…
Cancel
Save