summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/main.lua2
-rw-r--r--server/server.lua1
2 files changed, 2 insertions, 1 deletions
diff --git a/client/main.lua b/client/main.lua
index 9ee18ea..5884186 100644
--- a/client/main.lua
+++ b/client/main.lua
@@ -1,7 +1,7 @@
local enet = require"enet"
local words = require"common.words"
-local SERVER_HOSTNAME = "192.168.1.112"
+local SERVER_HOSTNAME = "ubq323.website"
local PLAYER_SIZE = 30
local local_player = nil
diff --git a/server/server.lua b/server/server.lua
index 6a36b71..7f7cc92 100644
--- a/server/server.lua
+++ b/server/server.lua
@@ -79,6 +79,7 @@ while true do
elseif ev.type == "disconnect" then
local player, idx = player_by_peer(ev.peer)
if not player then error("sneeze "..ev.peer) end
+ print("disconnect",player.peer,player.id)
table.remove(playerlist,idx)
for i,otherplayer in ipairs(playerlist) do
otherplayer.peer:send(player_leave_packet(player))