Skip to content

Commit

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

0 comments on commit 530c8d2

Please sign in to comment.