From d992840ba68e430b3a1ec92391049f1ba15719cc Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Thu, 16 Nov 2017 10:00:06 +0100 Subject: [PATCH] Update: CC - Before Render - Moorcow (to6trvr3fj.js) 25 bytes modified --- to6trvr3fj.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/to6trvr3fj.js b/to6trvr3fj.js index 294e4fb..6b4d7ee 100644 --- a/to6trvr3fj.js +++ b/to6trvr3fj.js @@ -197,13 +197,14 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) { GameLib.Event.AUDIO_ENDED, function(data) { - if (this.blastSubscription) { + if (data.audio.name === name) { - this.blastSubscription.remove(); - - this.blastSubscription = null; - - if (data.name === name) { + if (this.blastSubscription) { + + this.blastSubscription.remove(); + + this.blastSubscription = null; + GameLib.Event.Emit( GameLib.Event.PLAY_AUDIO, { @@ -211,8 +212,6 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) { } ); } - - } }.bind(this) );