summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-06-05 22:29:16 +0200
committerjmoenig <jens@moenig.org>2014-06-05 22:29:16 +0200
commitfdfd74f79e5bfc6388397bdcc258e4672964f675 (patch)
tree140380aa2d0a62bf4297faab30eb752331d39301 /objects.js
parentd7f30820b5d0363b89af5201643188545dd3e815 (diff)
downloadsnap-fdfd74f79e5bfc6388397bdcc258e4672964f675.tar.gz
snap-fdfd74f79e5bfc6388397bdcc258e4672964f675.zip
fixes a but in setHeading()
thanks, Brian!
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/objects.js b/objects.js
index 5de468b..897f14d 100644
--- a/objects.js
+++ b/objects.js
@@ -3204,7 +3204,7 @@ SpriteMorph.prototype.forward = function (steps) {
SpriteMorph.prototype.setHeading = function (degrees) {
var x = this.xPosition(),
y = this.yPosition(),
- dir = (+degrees || 90),
+ dir = (+degrees || 0),
turn = dir - this.heading;
// apply to myself