summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-23 16:33:52 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-23 16:33:52 +0100
commita4ddf08d846fac2b85cd78f69a07ad189637d3ec (patch)
treee04d3fefb628277ed25e554c46aff0207b2212f2
parent8faebe525ea515195a56d47eafe6966cbe9fe79e (diff)
downloadfriedrich-master.tar.gz
Fix objective protection range (it's 0-3 not 1-3).HEADmaster
-rw-r--r--rules.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 4a31d01..043699a 100644
--- a/rules.js
+++ b/rules.js
@@ -384,8 +384,7 @@ for (let s of all_objectives) {
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)
}