From aace7b1f9c80f5cb4b155d8b2db51f355b6f81b2 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sat, 26 Aug 2023 06:32:39 +0100 Subject: use usernames in join/leave chat messages --- client/game.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client') diff --git a/client/game.lua b/client/game.lua index e219fef..4fc148b 100644 --- a/client/game.lua +++ b/client/game.lua @@ -197,11 +197,11 @@ local function handle_net() color=pl.color, id=pl.id, username = pl.username, } - msgbox.add(pl.id.." joined") + msgbox.add(pl.username.." joined") elseif op == "leave" then local id = j.id + msgbox.add(remote_players[id].username.." left") remote_players[id]=nil - msgbox.add(id.." left") elseif op == "move" then local id,x,y = j.id,j.x,j.y assert(remote_players[id],"wheeze "..id) -- cgit v1.2.3