From fd4265de49af7eab8f94969a758ebef0f46b0b57 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Wed, 15 Jul 2015 17:10:32 +0900 Subject: [PATCH] make gameclient send name --- public/hft/0.x.x/scripts/gameclient.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/hft/0.x.x/scripts/gameclient.js b/public/hft/0.x.x/scripts/gameclient.js index ff52b9cd..4ec53082 100644 --- a/public/hft/0.x.x/scripts/gameclient.js +++ b/public/hft/0.x.x/scripts/gameclient.js @@ -235,8 +235,12 @@ define([ id = misc.makeRandomId(); idCookie.set(id); } + + var nameCookie = new Cookie("name"); + opts.data = misc.mergeObjects(opts.data); opts.data.__hft_session_id__ = id; // eslint-disable-line + opts.data.__hft_name__ = nameCookie.get() || ""; sendCmdLowLevel('join', opts); }; return GameClient;