repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 9a4dcdb9758b19ce506b94047e5274e50ccfb5a1:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 9a4dcdb9758b19ce506b94047e5274e50ccfb5a1
Author: James Baicoianu 
Date:   Sat Feb 3 12:44:08 2018 +0000

    Don't try to raycast if room isn't set

diff --git a/scripts/janusbase.js b/scripts/janusbase.js
index 279d8884e5a283a3c24e9c24cc04184dba1d569a..
index ..36a8a829f822146c9ea02096a3077ead0898600b 100644
--- a/scripts/janusbase.js
+++ b/scripts/janusbase.js
@@ -672,6 +672,7 @@ console.error('dunno what this is', other);
       var _pos = new THREE.Vector3(),
           _dir = new THREE.Vector3(0,0,-1);
       return function(dir, offset, classname) {
+	 if (!this.room) return [];
         if (dir) {
           _dir.copy(dir);
         } else {

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