repo: janusweb
action: commit
revision: 
path_from: 
revision_from: ba63bb2250859f9797c42f1a8d0dc7f202c5ea7b:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit ba63bb2250859f9797c42f1a8d0dc7f202c5ea7b
Author: James Baicoianu 
Date:   Sun Jan 24 04:47:06 2016 -0800

    Move player to (0,0,0) when walking through a new portal

diff --git a/scripts/portal.js b/scripts/portal.js
index 18f5dfa10d4b9b973586e38ead3d6a6e43684708..
index ..145d90043f2688e4bbd01503c28cf1d5ebcf3f98 100644
--- a/scripts/portal.js
+++ b/scripts/portal.js
@@ -150,7 +150,7 @@ elation.require(['engine.things.portal'], function() {
     this.click = function(ev) {
       if (ev.data.distance < 4 && this.properties.url) {
         this.frame.material.emissive.setHex(0x662222);
-        this.properties.janus.setActiveRoom(this.properties.url);
+        this.properties.janus.setActiveRoom(this.properties.url, [0,0,0]);
         setTimeout(elation.bind(this, function() { this.frame.material.emissive.setHex(0x222222); }), 250);
       }
     }

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