-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: janusweb
action: commit
revision:
path_from:
revision_from: 306935b1dac652993e1a7bad206bf18f6b0ff15e:
path_to:
revision_to:

git.thebackupbox.net

janusweb

git://git.thebackupbox.net/janusweb

commit 306935b1dac652993e1a7bad206bf18f6b0ff15e
Author: spyduck <flock.of.murkrows@gmail.com>
Date:   Wed Apr 11 07:11:29 2018 -0400

    Enable sound.play_once

diff --git a/scripts/sound.js b/scripts/sound.js

index d750b58c44627aafbf59195fbfe8c417fd6a5171..

index ..f71c5ff094a726d101bdfebcbcf0b1fc55c384ba 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) {
+        if (this.bounds && this.audio && !this.playing && !this.playStarted) {
           var listener = this.engine.systems.sound.getRealListener();
           if (listener) {
             worldpos.set(0,0,0).applyMatrix4(listener.matrixWorld);

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

-- Response ended

-- Page fetched on Sun Jun 2 15:47:05 2024