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.
This commit is contained in:
parent
ab8d7f57e9
commit
39301f5b59
|
@ -259,7 +259,7 @@ class Mscript {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (target > this.cam) {
|
if (this.target > this.cam) {
|
||||||
this.dist = this.target - this.cam;
|
this.dist = this.target - this.cam;
|
||||||
for (let x = 0; x < this.dist; x++) {
|
for (let x = 0; x < this.dist; x++) {
|
||||||
this.arr.push('BF');
|
this.arr.push('BF');
|
||||||
|
|
|
@ -259,7 +259,7 @@ class Mscript {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (target > this.cam) {
|
if (this.target > this.cam) {
|
||||||
this.dist = this.target - this.cam;
|
this.dist = this.target - this.cam;
|
||||||
for (let x = 0; x < this.dist; x++) {
|
for (let x = 0; x < this.dist; x++) {
|
||||||
this.arr.push('BF');
|
this.arr.push('BF');
|
||||||
|
|
|
@ -259,7 +259,7 @@ class Mscript {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (target > this.cam) {
|
if (this.target > this.cam) {
|
||||||
this.dist = this.target - this.cam;
|
this.dist = this.target - this.cam;
|
||||||
for (let x = 0; x < this.dist; x++) {
|
for (let x = 0; x < this.dist; x++) {
|
||||||
this.arr.push('BF');
|
this.arr.push('BF');
|
||||||
|
|
|
@ -161,7 +161,7 @@ class Mscript {
|
||||||
if (!this.variables[key] || update) {
|
if (!this.variables[key] || update) {
|
||||||
this.variables[key] = value;
|
this.variables[key] = value;
|
||||||
}
|
}
|
||||||
console.dir(this.variables)
|
//console.dir(this.variables)
|
||||||
}
|
}
|
||||||
variable_replace(line) {
|
variable_replace(line) {
|
||||||
|
|
||||||
|
@ -259,7 +259,7 @@ class Mscript {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (target > this.cam) {
|
if (this.target > this.cam) {
|
||||||
this.dist = this.target - this.cam;
|
this.dist = this.target - this.cam;
|
||||||
for (let x = 0; x < this.dist; x++) {
|
for (let x = 0; x < this.dist; x++) {
|
||||||
this.arr.push('BF');
|
this.arr.push('BF');
|
||||||
|
|
Loading…
Reference in New Issue