-- 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: 0a41845a72c8dbabbf4d8c57237d13a5ce244cce:
path_to:
revision_to:

git.thebackupbox.net

janusweb

git://git.thebackupbox.net/janusweb

commit 0a41845a72c8dbabbf4d8c57237d13a5ce244cce
Author: spyduck <flock.of.murkrows@gmail.com>
Date:   Wed Apr 11 12:00:24 2018 -0400

    make sound.play_once work (and fixed)

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

index d750b58c44627aafbf59195fbfe8c417fd6a5171..

index ..2a183d50b8b5ea7e29e546ef2c2cba5f8280a35e 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.play_once && 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:44:35 2024