summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-23 17:59:26 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-30 21:59:25 +0200
commit52d963de2cab44df83b4dee831af3b9fe30ce6f7 (patch)
treea8d0ac0e5fa1fc20c44f9ad55febf89769b70d07
parent30f288a20651b950b25ce8f9289a122bc6d4785d (diff)
downloadfriedrich-52d963de2cab44df83b4dee831af3b9fe30ce6f7.tar.gz
fix move with detached
-rw-r--r--rules.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 399572a..a9e2731 100644
--- a/rules.js
+++ b/rules.js
@@ -1452,6 +1452,7 @@ states.move_general_NEW = {
log("P" + who + " " + path.map(s => "S" + s).join(" > "))
let stop = false
+ path.shift() // skip start space
for (let s of path)
stop ||= move_general_to(s)