From 530c8d29d82aa2269905125f0f34d151934c7605 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Wed, 15 Jul 2015 17:11:20 +0900 Subject: [PATCH] make netplayer get name from first message --- public/hft/0.x.x/scripts/netplayer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/hft/0.x.x/scripts/netplayer.js b/public/hft/0.x.x/scripts/netplayer.js index 7920f92a..bb4ddb30 100644 --- a/public/hft/0.x.x/scripts/netplayer.js +++ b/public/hft/0.x.x/scripts/netplayer.js @@ -59,6 +59,10 @@ define(function() { var _name = name; var _busy = false; + if (data && data.__hft_name__) { + _name = data.__hft_name__; + } + function sendCmd(cmd, msg) { if (!_connected) { return;