diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/server.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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)) |