From fdfd74f79e5bfc6388397bdcc258e4672964f675 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Thu, 5 Jun 2014 22:29:16 +0200 Subject: [PATCH] fixes a but in setHeading() thanks, Brian! --- objects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objects.js b/objects.js index 5de468bf..897f14db 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