Skip to content

Commit

Permalink
Merge pull request #1312 from DaanHaaz/patch-1
Browse files Browse the repository at this point in the history
Removed an unnecessary if-statement.
  • Loading branch information
photonstorm committed Nov 10, 2014
2 parents d22f2bd + 266adf0 commit 53caac2
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/sound/AudioSprite.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,9 @@ Phaser.AudioSprite = function (game, key) {
{
var marker = this.config.spritemap[k];
var sound = this.game.add.sound(this.key);

if (marker.loop)
{
sound.addMarker(k, marker.start, (marker.end - marker.start), null, true);
}
else
{
sound.addMarker(k, marker.start, (marker.end - marker.start), null, false);
}


sound.addMarker(k, marker.start, (marker.end - marker.start), null, marker.loop);

this.sounds[k] = sound;
}

Expand Down

0 comments on commit 53caac2

Please sign in to comment.