From bfc190b60362daf7d4231a941c92cebc6e17190d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Melan=C3=A7on?= Date: Sun, 31 Oct 2021 00:36:24 -0400 Subject: [PATCH 1/3] fix turtle going to the moon when calling pu() multiple times --- include/drawing.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/drawing.js b/include/drawing.js index 4d0977c0..0964dd4a 100644 --- a/include/drawing.js +++ b/include/drawing.js @@ -272,14 +272,12 @@ DrawingWindow.prototype.set_thickness = function (width) { DrawingWindow.prototype.pu = function () { var dw = this; - dw.pen_height++; + dw.pen_height = 1; }; DrawingWindow.prototype.pd = function () { - var dw = this; - if (--dw.pen_height <= 0) { - dw.pen_height = 0; - } + var dw = this; + dw.pen_height = 0; }; DrawingWindow.prototype.triangle = function (h, base) { From 7f617a2eaceda4bbc38c47a7e756a17988ae7eec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Melan=C3=A7on?= Date: Sun, 31 Oct 2021 00:39:22 -0400 Subject: [PATCH 2/3] update bundle.js file --- codeboot.bundle.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/codeboot.bundle.js b/codeboot.bundle.js index fb8baa86..03accf0c 100644 --- a/codeboot.bundle.js +++ b/codeboot.bundle.js @@ -33128,7 +33128,7 @@ function CodeBoot() { var cb = this; - cb.version = '3.1.8'; + cb.version = '3.1.9'; cb.cmds = null; cb.cmds_valid = false; @@ -37452,14 +37452,12 @@ DrawingWindow.prototype.set_thickness = function (width) { DrawingWindow.prototype.pu = function () { var dw = this; - dw.pen_height++; + dw.pen_height = 1; }; DrawingWindow.prototype.pd = function () { - var dw = this; - if (--dw.pen_height <= 0) { - dw.pen_height = 0; - } + var dw = this; + dw.pen_height = 0; }; DrawingWindow.prototype.triangle = function (h, base) { From 0b3346d4b825e47ff73dc5ee8c5e4cfaa7f1883d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Melan=C3=A7on?= Date: Sun, 31 Oct 2021 00:43:24 -0400 Subject: [PATCH 3/3] bump micro --- codeboot.bundle.js | 2 +- include/codeboot.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codeboot.bundle.js b/codeboot.bundle.js index 03accf0c..2455e9d9 100644 --- a/codeboot.bundle.js +++ b/codeboot.bundle.js @@ -33128,7 +33128,7 @@ function CodeBoot() { var cb = this; - cb.version = '3.1.9'; + cb.version = '3.1.10'; cb.cmds = null; cb.cmds_valid = false; diff --git a/include/codeboot.js b/include/codeboot.js index d91d722b..aeb7adf3 100644 --- a/include/codeboot.js +++ b/include/codeboot.js @@ -4,7 +4,7 @@ function CodeBoot() { var cb = this; - cb.version = '3.1.9'; + cb.version = '3.1.10'; cb.cmds = null; cb.cmds_valid = false;