Fix a few more bugs and address the PR feedback

This commit is contained in:
Guillaume St-Pierre 2022-12-10 16:28:17 -05:00
parent 17426fd585
commit 5c727484bf
7 changed files with 24 additions and 55 deletions

View file

@ -1466,7 +1466,7 @@ window.BurgsAndStates = (function () {
for (const i of cells.i) {
if (cells.burg[i]) continue; // do not overwrite burgs
// Do not process any locked provinces or states
if (pack.provinces[cells.province[i]].lock || pack.states[cells.state[i]].lock) return;
if (pack.provinces[cells.province[i]].lock || pack.states[cells.state[i]].lock) continue;
// Find neighbors, but ignore any cells from locked states or provinces
const neibs = cells.c[i].filter(
c =>