Skip to content

Commit

Permalink
make gameclient send name
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jul 15, 2015
1 parent d28a645 commit fd4265d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/hft/0.x.x/scripts/gameclient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fd4265d

Please sign in to comment.