mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
Fix a few more bugs and address the PR feedback
This commit is contained in:
parent
17426fd585
commit
5c727484bf
7 changed files with 24 additions and 55 deletions
|
|
@ -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 =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue