|
@@ -242,6 +242,11 @@ class CodeBox {
|
|
this.stack.push(y == x ? 1 : 0);
|
|
this.stack.push(y == x ? 1 : 0);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
+ //String mode
|
|
|
|
+ case "\"":
|
|
|
|
+ case "'":
|
|
|
|
+ this.stringMode = !!this.stringMode ? 0 : dec(instruction);
|
|
|
|
+ break;
|
|
// Movement
|
|
// Movement
|
|
case "^":
|
|
case "^":
|
|
this.MoveUp();
|
|
this.MoveUp();
|
|
@@ -339,7 +344,7 @@ class CodeBox {
|
|
Swim() {
|
|
Swim() {
|
|
const instruction = this.box[this.pointer.Y][this.pointer.X];
|
|
const instruction = this.box[this.pointer.Y][this.pointer.X];
|
|
|
|
|
|
- if(this.stringMode != 0 && instruction != this.stringMode) {
|
|
|
|
|
|
+ if(this.stringMode != 0 && dec(instruction) != this.stringMode) {
|
|
this.stack.Push(dec(instruction));
|
|
this.stack.Push(dec(instruction));
|
|
}
|
|
}
|
|
else {
|
|
else {
|