hotfix for provinces editor

This commit is contained in:
Azgaar 2022-05-19 19:17:02 +03:00
parent 52333ae256
commit 5dea22c4a3
3 changed files with 5 additions and 4 deletions

View file

@ -118,7 +118,8 @@ function editProvinces() {
totalPopulation = 0;
for (const p of filtered) {
totalArea += getArea(p.area);
const area = getArea(p.area);
totalArea += area;
const rural = p.rural * populationRate;
const urban = p.urban * populationRate * urbanization;
const population = rn(rural + urban);