-- 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:
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
--- 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