Skip to content

Commit 45426be

Browse files
committed
Assets update
1 parent 8452fa0 commit 45426be

10 files changed

Lines changed: 4 additions & 6 deletions

File tree

190 Bytes
Loading
160 Bytes
Loading
160 Bytes
Loading
171 Bytes
Loading
162 Bytes
Loading
162 Bytes
Loading
167 Bytes
Loading
446 Bytes
Loading

src/input/InputHandler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,8 +755,8 @@ Phaser.InputHandler.prototype = {
755755
*/
756756
setDragLock: function (allowHorizontal, allowVertical) {
757757

758-
allowHorizontal = allowHorizontal || true;
759-
allowVertical = allowVertical || true;
758+
if (typeof allowHorizontal == 'undefined') { allowHorizontal = true; }
759+
if (typeof allowVertical == 'undefined') { allowVertical = true; }
760760

761761
this.allowHorizontalDrag = allowHorizontal;
762762
this.allowVerticalDrag = allowVertical;

src/sound/Sound.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Phaser.Sound = function (game, key, volume, loop) {
2727
* @public
2828
* @type {string}
2929
*/
30-
this.name = '';
30+
this.name = key;
3131

3232
/**
3333
* Asset key for the sound.
@@ -266,9 +266,7 @@ Phaser.Sound.prototype = {
266266
if (typeof loop == 'undefined') { loop = false; }
267267
if (typeof forceRestart == 'undefined') { forceRestart = false; }
268268

269-
270-
271-
console.log('play ' + marker + ' position ' + position + ' volume ' + volume + ' loop ' + loop);
269+
console.log(this.name + ' play ' + marker + ' position ' + position + ' volume ' + volume + ' loop ' + loop);
272270

273271
if (this.isPlaying == true && forceRestart == false && this.override == false)
274272
{

0 commit comments

Comments
 (0)