This commit is contained in:
Azgaar 2019-11-19 23:42:08 +03:00
parent bf8d18937a
commit e2e7f2e076
2 changed files with 3 additions and 3 deletions

View file

@ -114,7 +114,7 @@ function regenerateBurgs() {
if (burgsTree.find(x, y, s) !== undefined) continue; // to close to existing burg
const state = cells.state[cell];
const capital = state > 0 ? !states[state].capital : 0; // if state doesn't have capital, make this burg a capital, no capital for neutral lands
const capital = state && !states[state].capital; // if state doesn't have capital, make this burg a capital, no capital for neutral lands
if (capital) {states[state].capital = id; states[state].center = cell;}
const culture = cells.culture[cell];