diff options
| author | Jens Mönig <jens@moenig.org> | 2015-04-15 17:30:43 +0200 |
|---|---|---|
| committer | Jens Mönig <jens@moenig.org> | 2015-04-15 17:30:43 +0200 |
| commit | 834b3918adc35792eae7d6cf59a17f48f0d88cb9 (patch) | |
| tree | 151ab6c4637c774374a61d7214036a91a769cd0f /objects.js | |
| parent | db01489a49631ffed9a3d2acefa8581ded8752ad (diff) | |
| download | snap-834b3918adc35792eae7d6cf59a17f48f0d88cb9.tar.gz snap-834b3918adc35792eae7d6cf59a17f48f0d88cb9.zip | |
fixed #770
Diffstat (limited to 'objects.js')
| -rw-r--r-- | objects.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)); } }; |
