From 834b3918adc35792eae7d6cf59a17f48f0d88cb9 Mon Sep 17 00:00:00 2001 From: Jens Mönig Date: Wed, 15 Apr 2015 17:30:43 +0200 Subject: fixed #770 --- history.txt | 1 + objects.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/history.txt b/history.txt index 9cdc5c9..0efef9b 100755 --- a/history.txt +++ b/history.txt @@ -2484,3 +2484,4 @@ ______ 150415 ------ * Threads: flush Stage>>keysPressed when prompting the user +* Objects: fixed #770 diff --git a/objects.js b/objects.js index 1fe1309..db5ab88 100644 --- a/objects.js +++ b/objects.js @@ -125,7 +125,7 @@ PrototypeHatBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.objects = '2015-February-28'; +modules.objects = '2015-April-15'; var SpriteMorph; var StageMorph; @@ -3081,7 +3081,7 @@ SpriteMorph.prototype.setEffect = function (effect, value) { if (eff === 'ghost') { this.alpha = 1 - Math.min(Math.max(+value || 0, 0), 100) / 100; } else { - this.graphicsValues[eff] = value; + this.graphicsValues[eff] = +value; } this.drawNew(); this.changed(); @@ -3096,7 +3096,7 @@ SpriteMorph.prototype.changeEffect = function (effect, value) { if (eff === 'ghost') { this.setEffect(effect, this.getGhostEffect() + (+value || 0)); } else { - this.setEffect(effect, this.graphicsValues[eff] + value); + this.setEffect(effect, +this.graphicsValues[eff] + (+value)); } }; -- cgit v1.3.1