mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 18:02:31 +02:00
final script repairs for new AudioInjector API
This commit is contained in:
parent
1120a5f963
commit
0154ac9734
2 changed files with 1 additions and 2 deletions
|
@ -39,7 +39,6 @@ function update(deltaTime) {
|
|||
|
||||
Script.scriptEnding.connect(function() {
|
||||
Entities.deleteEntity(objectId);
|
||||
sound.stop();
|
||||
});
|
||||
|
||||
Script.update.connect(update);
|
|
@ -30,7 +30,7 @@ var playing = false;
|
|||
var ball = false;
|
||||
|
||||
function maybePlaySound(deltaTime) {
|
||||
if (sound.downloaded) {
|
||||
if (sound.downloaded && !soundPlaying) {
|
||||
var properties = {
|
||||
type: "Sphere",
|
||||
position: options.position,
|
||||
|
|
Loading…
Reference in a new issue