aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDevine Lu Linvega <[email protected]>2018-10-14 16:10:49 +1200
committerDevine Lu Linvega <[email protected]>2018-10-14 16:10:49 +1200
commitb9d72bd1104426fb4d193ac887429b03cb48da7c (patch)
tree69911b6c98a307b416248e35524a09d17da1885a
parent3ee46a0adcb0e80e3113cf3620f8858abae23d87 (diff)
downloadOrca-b9d72bd1104426fb4d193ac887429b03cb48da7c.tar.gz
Orca-b9d72bd1104426fb4d193ac887429b03cb48da7c.zip
Fixed tiny bug
-rw-r--r--core/lib/_move.js4
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
}
}