summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2025-06-10 11:50:23 +0100
committerubq323 <ubq323@ubq323.website>2025-06-10 11:50:23 +0100
commitffa2a6c016ed4255a6e1092e547149c70be27419 (patch)
treec0e3a0be65ebd6baa92c076762c72408c094087a /client
parent17c62e9990a99933e31fc2b625fe93fa142c4e3b (diff)
port
Diffstat (limited to 'client')
-rw-r--r--client/menu.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/menu.lua b/client/menu.lua
index c447e7d..9ae1fb9 100644
--- a/client/menu.lua
+++ b/client/menu.lua
@@ -6,6 +6,9 @@ local utf8 = require'utf8'
local enet = require'enet'
local json = require'dkjson'
local qw = require'r.qw'
+local common = require'common'
+
+local HOST = 'ubq323.website'
local logo = G.newImage"logo.png" logo:setFilter'nearest'
@@ -82,7 +85,7 @@ local host,conn
function ConnectButton.click(self)
print(love.filesystem.write('menu.json',
json.encode{color=state.color,name=state.name}))
- self.c = true host = enet.host_create() conn=host:connect"localhost:19683"end
+ self.c = true host = enet.host_create() conn=host:connect(HOST..':'..common.port)end
function ConnectButton.unclick(self)
self.c = false host=nil conn=nil end