repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 69061bdf049c86aafe80bc42c0da5a24e0fe09d7:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 69061bdf049c86aafe80bc42c0da5a24e0fe09d7
Author: James Baicoianu 
Date:   Fri Feb 10 01:52:51 2017 -0800

    player.user_id fix

diff --git a/scripts/janusweb.js b/scripts/janusweb.js
index ad2a1fa538d8fa61f550ae15e0ea8203657e48f8..
index ..07bccb2e78dbc8af53a71099a4bae8ed4e57d62f 100644
--- a/scripts/janusweb.js
+++ b/scripts/janusweb.js
@@ -192,6 +192,8 @@ elation.require(['janusweb.config', 'engine.things.generic','janusweb.remoteplay
         // connect to presence server
         //this.userId = Date.now().toString();
         this.userId = this.getUsername();
+        this.engine.client.player.properties.player_id = this.userId; // FIXME - player spawns without an id, so we fix it up here
+
         var host = elation.utils.any(hashargs['janus.server'], elation.config.get('janusweb.network.host')),
             port = elation.utils.any(hashargs['janus.port'], elation.config.get('janusweb.network.port'), 5567);
         var janusOptions = {

-----END OF PAGE-----