diff options
author | Devine Lu Linvega <[email protected]> | 2018-10-14 16:10:49 +1200 |
---|---|---|
committer | Devine Lu Linvega <[email protected]> | 2018-10-14 16:10:49 +1200 |
commit | b9d72bd1104426fb4d193ac887429b03cb48da7c (patch) | |
tree | 69911b6c98a307b416248e35524a09d17da1885a | |
parent | 3ee46a0adcb0e80e3113cf3620f8858abae23d87 (diff) | |
download | Orca-b9d72bd1104426fb4d193ac887429b03cb48da7c.tar.gz Orca-b9d72bd1104426fb4d193ac887429b03cb48da7c.zip |
Fixed tiny bug
-rw-r--r-- | core/lib/_move.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/lib/_move.js b/core/lib/_move.js index 09ffe5a..86408b2 100644 --- a/core/lib/_move.js +++ b/core/lib/_move.js @@ -51,13 +51,15 @@ function FnMove (pico, x, y) { return true } // Or, turn clockwise - else if (pico.glyph_at(move_right.x, this.y) == perpe_g) { + else if (pico.glyph_at(move_right.x, move_right.y) == perpe_g) { pico.add(move_right.x, move_right.y, move_right.glyph) + this.replace(paral_g) return true } // Or, turn anti-clockwise else if (pico.glyph_at(move_left.x, move_left.y) == perpe_g) { pico.add(move_left.x, move_left.y, move_left.glyph) + this.replace(paral_g) return true } } |