Skip to content

Commit

Permalink
fix netplayer to accept name
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed May 28, 2015
1 parent 023a795 commit 1802aa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/hft/0.x.x/scripts/netplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ define(function() {
* @param {number} id
* @param {string} name
*/
var NetPlayer = function(server, id, data) {
var NetPlayer = function(server, id, data, name) {
var _server = server;
var _id = id;
var _eventListeners = { };
Expand All @@ -56,7 +56,7 @@ define(function() {
var _sessionId = data ? data.__hft_session_id__ : undefined;
var _self = this;
var _emptyMsg = {};
var _name = "player";
var _name = name;
var _busy = false;

function sendCmd(cmd, msg) {
Expand Down

0 comments on commit 1802aa9

Please sign in to comment.