summaryrefslogtreecommitdiff
path: root/client/game.lua
diff options
context:
space:
mode:
Diffstat (limited to 'client/game.lua')
-rw-r--r--client/game.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/client/game.lua b/client/game.lua
index ede8d98..cf57c81 100644
--- a/client/game.lua
+++ b/client/game.lua
@@ -197,10 +197,8 @@ local function handle_net()
color=pl.color, id=pl.id,
username = pl.username,
}
- msgbox.add(pl.username.." joined")
elseif op == "leave" then
local id = j.id
- msgbox.add(remote_players[id].username.." left")
remote_players[id]=nil
elseif op == "move" then
local id,x,y = j.id,j.x,j.y
@@ -224,8 +222,7 @@ local function handle_net()
local h = coords.Hex:make(j.q,j.r)
map:set_at(h,j.tile)
elseif op == "chat" then
- local msg,from = j.msg,j.from
- msgbox.add("["..tostring(from).."] "..msg)
+ msgbox.add(j.msg)
end
end
until not ev