diff options
| author | jmoenig <jens@moenig.org> | 2014-06-05 17:42:36 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-06-05 17:42:36 +0200 |
| commit | ccdce5da74cbc0b8bd1f60c8981894bc1f0e164b (patch) | |
| tree | 70f2f50d6bcfedc61fd9698c2c6f88529d3994ce /objects.js | |
| parent | 9f690fbfa393c2bc73ac4a8a479ae089161a7556 (diff) | |
| download | snap-byow-ccdce5da74cbc0b8bd1f60c8981894bc1f0e164b.tar.gz snap-byow-ccdce5da74cbc0b8bd1f60c8981894bc1f0e164b.zip | |
fixed #465
Diffstat (limited to 'objects.js')
| -rw-r--r-- | objects.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -3204,11 +3204,12 @@ SpriteMorph.prototype.forward = function (steps) { SpriteMorph.prototype.setHeading = function (degrees) { var x = this.xPosition(), y = this.yPosition(), - turn = degrees - this.heading; + dir = (+degrees || 90), + turn = dir - this.heading; // apply to myself this.changed(); - SpriteMorph.uber.setHeading.call(this, degrees); + SpriteMorph.uber.setHeading.call(this, dir); this.silentGotoXY(x, y, true); // just me this.positionTalkBubble(); |
