diff options
| -rw-r--r-- | index.html | 7 | ||||
| -rw-r--r-- | threads.js | 19 |
2 files changed, 11 insertions, 15 deletions
diff --git a/index.html b/index.html deleted file mode 100644 index 4c1a0f4..0000000 --- a/index.html +++ /dev/null @@ -1,7 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta HTTP-EQUIV="REFRESH" content="0.1; url=snap.html"> - </head> -</html> - @@ -1895,15 +1895,18 @@ Process.prototype.blockReceiver = function () { Process.prototype.doPlaySoundUntilDone = function (name) { var sprite = this.homeContext.receiver; - if (this.context.activeAudio === null) { - this.context.activeAudio = sprite.playSound(name); - } - if (this.context.activeAudio.ended - || this.context.activeAudio.terminated) { - return null; + + if (name !== '') { + if (this.context.activeAudio === null) { + this.context.activeAudio = sprite.playSound(name); + } + if (this.context.activeAudio.ended + || this.context.activeAudio.terminated) { + return null; + } + this.pushContext('doYield'); + this.pushContext(); } - this.pushContext('doYield'); - this.pushContext(); }; Process.prototype.doStopAllSounds = function () { |
