fix dont' draw issue with "set x", "set y", "change x by", "change y by" (issue #39)

upd4.2
Michael Aschauer 2018-10-02 16:49:52 +02:00
rodzic 26a8aa9cf6
commit 0b564000b9
2 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -3,9 +3,11 @@ Turtlestitch history
180902
------
* fix translation error when loading project: add (empty) translations files to stitchcode
* fix chinese translation file (from snap)
* fix translation error when loading project: add (empty) translations files to stitchcode (issued #35)
* fix chinese translation file (from snap!), wrong character
* make stage handle more visible (issue #34)
* write/read creator, originCreator, originName and remixhistory into projects (issue
* fix dont' draw issue with "set x", "set y", "change x by", "change y by" (issue #39)
180917
------

Wyświetl plik

@ -206,7 +206,7 @@ SpriteMorph.prototype.gotoXY = function (x, y, justMe, noShadow) {
oldx = this.xPosition();
oldy = this.yPosition();
this.origGotoXY(x, y, justMe);
if ( (Math.abs(this.xPosition()-oldx)<=0.01 && Math.abs(this.yPosition()-oldy)<=0.01) || noShadow ) {
if ( (Math.abs(this.xPosition()-oldx)<=0.01 && Math.abs(this.yPosition()-oldy)<=0.01) ) {
// jump in place - don't add / ignore
console.log("jump in place - don't add / ignore");
} else {