mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
Removed console.log and fixed Wrap function.
This commit is contained in:
parent
a7f46a7777
commit
5fff7c4c55
3 changed files with 2 additions and 20 deletions
|
@ -1,4 +1,4 @@
|
|||
var CHECKSUM = {
|
||||
build: '8abd9c10-52c0-11e7-b265-8776d98a5edd'
|
||||
build: '16384640-5308-11e7-8460-f5f1d2b80b32'
|
||||
};
|
||||
module.exports = CHECKSUM;
|
|
@ -2,24 +2,7 @@ var Wrap = function (value, min, max)
|
|||
{
|
||||
var range = max - min;
|
||||
|
||||
if (range <= 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (value >= min && value <= max)
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
var result = (value - min) % range;
|
||||
|
||||
if (result < 0)
|
||||
{
|
||||
result += range;
|
||||
}
|
||||
|
||||
return result + min;
|
||||
return (min + ((((value - min) % range) + range) % range));
|
||||
};
|
||||
|
||||
module.exports = Wrap;
|
||||
|
|
|
@ -124,7 +124,6 @@ var FX = function (ctx, config)
|
|||
|
||||
oscillator.onended = function ()
|
||||
{
|
||||
console.log('onended');
|
||||
_this.pan.disconnect();
|
||||
_this.volume.disconnect();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue