repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 4bf98320967e636738430ee970ec50d93cce55d6:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 4bf98320967e636738430ee970ec50d93cce55d6
Author: James Baicoianu 
Date:   Mon Jan 2 22:17:33 2017 -0800

    Added usevoip option

diff --git a/scripts/client.js b/scripts/client.js
index cf4c4db5225ab76926e1109c1c00ed0d4a26c1a7..
index ..e255cabf6d41cafe3b8a36000d94ee438010ee9f 100644
--- a/scripts/client.js
+++ b/scripts/client.js
@@ -46,6 +46,7 @@ elation.require(['engine.engine', 'engine.assets', 'engine.things.light_ambient'
       homepage: homepage, 
       shownavigation: args.shownavigation,
       showchat: elation.utils.any(args.showchat, true),
+      usevoip: elation.utils.any(args.usevoip, false),
       resolution: args.resolution, 
       url: args.url,
       fullsize: fullsize
@@ -83,23 +84,18 @@ elation.require(['engine.engine', 'engine.assets', 'engine.things.light_ambient'
           datapath: elation.config.get('janusweb.datapath'),
           homepage: this.args.homepage,
           url: this.args.url,
-          showchat: this.args.showchat
-        },
-        things: {
-          player: {
-            name: 'player',
-            type: 'janusplayer',
-            properties: {
-              position: [0,0,0],
-              mass: 10,
-              movespeed: 5000,
-              collidable: true
-            }
-          },
+          showchat: this.args.showchat,
         }
       });
       this.janusweb = things.children.janusweb;
-      this.player = this.janusweb.children.player;
+      this.player = this.janusweb.spawn('janusplayer', 'player', {
+        janus: this.janusweb,
+        position: [0,0,0],
+        mass: 10,
+        movespeed: 5000,
+        collidable: true,
+        usevoip: this.args.usevoip
+      });

       this.shownavigation = elation.utils.any(this.args.shownavigation, true);
       if (this.shownavigation) {

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