From 1802aa99421bed19086e0214a5e4fcec6bb49e2a Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Thu, 28 May 2015 17:39:43 +0900 Subject: [PATCH] fix netplayer to accept name --- public/hft/0.x.x/scripts/netplayer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/hft/0.x.x/scripts/netplayer.js b/public/hft/0.x.x/scripts/netplayer.js index 038ea461..7920f92a 100644 --- a/public/hft/0.x.x/scripts/netplayer.js +++ b/public/hft/0.x.x/scripts/netplayer.js @@ -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 = { }; @@ -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) {