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');