Browse Source

server detector update

tags/online1.1
Madiwka 3 years ago
parent
commit
0d075f0ce2
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      main.lua
  2. +2
    -2
      src/baseGame.lua

+ 2
- 2
main.lua View File

@@ -51,7 +51,7 @@ rotation = 0
TEXT = "Nuclear Pong"
currentKey = " "
ptw = 10
checkrate = 2
checkrate = 0.5
--CHECKING IF CONTROLS ARE TAKEN
danger = "none"
danger2 = "none"
@@ -1666,7 +1666,7 @@ function checkCurrentServer(dt)
if IP ~= address then dserverinit = false print(IP .. " " .. address)
end
ts = ts + dt
print(ts)
--print(ts)
if ts > checkrate then
status = "offline"
print("sent ping")


+ 2
- 2
src/baseGame.lua View File

@@ -688,7 +688,7 @@ function menuDraw()
end
if gameState == "chooseIP" then
IPselect = {}
if status == "offine" then
if status == "offline" then
love.graphics.printf("UNABLE TO CONNECT", 0, VIRTUAL_HEIGHT / 2, VIRTUAL_WIDTH, "center")
elseif status == "nettest" then
table.insert(
@@ -708,7 +708,7 @@ function menuDraw()
table.insert(
IPselect,
newButton(
"Guest",
"Connect as Guest",
function()
globalState = "clienttest"
AGAINST_AI = 0


Loading…
Cancel
Save