repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 7aceaed6433fa82b8838a0270972653311ec7c3b:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 7aceaed6433fa82b8838a0270972653311ec7c3b
Author: spyduck 
Date:   Wed Apr 11 12:36:21 2018 -0400

    fix syncing issue

    object.sync = true now resets each frame, otherwise future syncs get ignored

diff --git a/scripts/sound.js b/scripts/sound.js
index f71c5ff094a726d101bdfebcbcf0b1fc55c384ba..
index ..3c18fa8d6aa0ad9ff56d6246edcea31146441378 100644
--- a/scripts/sound.js
+++ b/scripts/sound.js
@@ -150,7 +150,7 @@ elation.require(['janusweb.janusbase'], function() {
     this.checkBounds = (function() {
       var worldpos = new THREE.Vector3();
       return function() {
-        if (this.bounds && this.audio && !this.playing && !this.playStarted) {
+        if (this.bounds && this.audio && !this.playing) {
           var listener = this.engine.systems.sound.getRealListener();
           if (listener) {
             worldpos.set(0,0,0).applyMatrix4(listener.matrixWorld);
@@ -184,4 +184,4 @@ elation.require(['janusweb.janusbase'], function() {
       return this._proxyobject;
     }
   }, elation.engine.things.janusbase);
-});
+});
\ No newline at end of file

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