From 39301f5b59f7b61553c39ca11c918c505ca70335 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Tue, 28 May 2019 09:06:59 -0400 Subject: [PATCH] FOUND THE BUG causing #3. Mscript still needs full conversion to typescript. This would have been caught on compile. Resolves #3, create a new issue for mscript refactor. --- app/lib/mscript/index.js | 2 +- cli/lib/mscript/index.js | 2 +- lib/mscript/index.js | 2 +- src/mscript/index.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/lib/mscript/index.js b/app/lib/mscript/index.js index e2fac5e..8f5b93e 100644 --- a/app/lib/mscript/index.js +++ b/app/lib/mscript/index.js @@ -259,7 +259,7 @@ class Mscript { } } } else { - if (target > this.cam) { + if (this.target > this.cam) { this.dist = this.target - this.cam; for (let x = 0; x < this.dist; x++) { this.arr.push('BF'); diff --git a/cli/lib/mscript/index.js b/cli/lib/mscript/index.js index e2fac5e..8f5b93e 100644 --- a/cli/lib/mscript/index.js +++ b/cli/lib/mscript/index.js @@ -259,7 +259,7 @@ class Mscript { } } } else { - if (target > this.cam) { + if (this.target > this.cam) { this.dist = this.target - this.cam; for (let x = 0; x < this.dist; x++) { this.arr.push('BF'); diff --git a/lib/mscript/index.js b/lib/mscript/index.js index e2fac5e..8f5b93e 100644 --- a/lib/mscript/index.js +++ b/lib/mscript/index.js @@ -259,7 +259,7 @@ class Mscript { } } } else { - if (target > this.cam) { + if (this.target > this.cam) { this.dist = this.target - this.cam; for (let x = 0; x < this.dist; x++) { this.arr.push('BF'); diff --git a/src/mscript/index.js b/src/mscript/index.js index e2fac5e..54e50a7 100644 --- a/src/mscript/index.js +++ b/src/mscript/index.js @@ -161,7 +161,7 @@ class Mscript { if (!this.variables[key] || update) { this.variables[key] = value; } - console.dir(this.variables) + //console.dir(this.variables) } variable_replace(line) { @@ -259,7 +259,7 @@ class Mscript { } } } else { - if (target > this.cam) { + if (this.target > this.cam) { this.dist = this.target - this.cam; for (let x = 0; x < this.dist; x++) { this.arr.push('BF');