diff options
-rw-r--r-- | rules.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1228,9 +1228,6 @@ function trace_supply_network_1(start) let here = item >> 3 let here_move = item & 7 - if (supply_friendly[here] > 0) - search_order.unshift(here) - for (let s = 0; s < 6; ++s) { let next = here + hexnext[s] @@ -1258,6 +1255,9 @@ function trace_supply_network_1(start) supply_visited[next] = next_move + if (supply_friendly[next] > 0 && !supply_net[next]) + search_order.unshift(next) + supply_net[next] = 1 if (next_move !== TRACE_STOP) |