summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-23 16:34:12 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-23 16:34:19 +0100
commit6917bf954bae1f2ad9c10378a2b15d2da865d48c (patch)
tree6523f8552bc3071a7fcc3354563730ba4a098675
parentf728a123826e13b085f8d88e2e90e78eee9302e8 (diff)
downloadmaria-6917bf954bae1f2ad9c10378a2b15d2da865d48c.tar.gz
Fix protection range.
-rw-r--r--rules.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index b03ce2f..7354cfd 100644
--- a/rules.js
+++ b/rules.js
@@ -987,8 +987,7 @@ for (let s of all_fortresses)
function make_protect_range(result, start, here, range) {
for (let next of data.cities.adjacent[here]) {
- if (next !== start)
- set_add(result, next)
+ set_add(result, next)
if (range > 1)
make_protect_range(result, start, next, range - 1)
}