Browse Source

more bugs fixed

tags/online1.1
Madiwka 3 years ago
parent
commit
e7eb9a7b81
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      main.lua

+ 1
- 2
main.lua View File

@@ -851,7 +851,7 @@ function nettest(dt)
paddle_SPEED = p[1], die, tonumber(p[4]), tonumber(p[5]), tonumber(p[6]), tonumber(p[7]), tonumber(p[8]), tonumber(p[9]), tonumber(p[10]), p[11], tonumber(p[12]), tonumber(p[13]), tonumber(p[14])
print("ACCEPTED")
end
print("ENFORCED")
print("ENFORCED" .. ball[1].x .. " " .. ball[1].dx)
lastSentKeyClient = p[1]
player2.y = tonumber(p[4])
end
@@ -876,7 +876,6 @@ function clienttest(dt)
udp = socket.udp()
udp:setpeername(address, port)
udp:settimeout(0)
udp:send(tostring(lastSentKey) ..'|' .. player2.y .. "|CLIENT")
clientinit = true
end
ts = ts + dt


Loading…
Cancel
Save