diff options
author | ubq323 <ubq323@ubq323.website> | 2023-08-26 06:32:39 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-08-26 06:32:39 +0100 |
commit | aace7b1f9c80f5cb4b155d8b2db51f355b6f81b2 (patch) | |
tree | 7410fac5a8167c5cadab6fe28117e691e09db406 /client | |
parent | 3102095c9ff4939dfc0438339c7208ee7b2e2957 (diff) |
use usernames in join/leave chat messages
Diffstat (limited to 'client')
-rw-r--r-- | client/game.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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) |