fixes a but in setHeading()

thanks, Brian!
pull/3/merge
jmoenig 2014-06-05 22:29:16 +02:00
rodzic d7f30820b5
commit fdfd74f79e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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