diff --git a/modules/submap.js b/modules/submap.js index 6ec6d2e9..dde13a19 100644 --- a/modules/submap.js +++ b/modules/submap.js @@ -367,6 +367,7 @@ window.Submap = (function () { pack.burgs.forEach((b, id) => { if (id == 0) return; // skip empty city of neturals [b.x, b.y] = projection(b.x, b.y); + b.population = b.population * options.scale; // adjust for populationRate change // disable out-of-map (removed) burgs if (!inMap(b.x, b.y)) { diff --git a/modules/ui/editors.js b/modules/ui/editors.js index aef76a8b..ee872c1f 100644 --- a/modules/ui/editors.js +++ b/modules/ui/editors.js @@ -320,7 +320,7 @@ function getMFCGlink(burg) { } const parameters = {name, population, size, seed, river, coast, farms, citadel, urban_castle, hub, plaza, temple, walls, shantytown, gates: -1}; - const url = new URL("https://watabou.github.io/city-generator"); + const url = new URL("https://watabou.github.io/city-generator/"); url.search = new URLSearchParams(parameters); if (sea) url.searchParams.append("sea", sea); diff --git a/modules/ui/submap.js b/modules/ui/submap.js index e987cba0..3e8b8230 100644 --- a/modules/ui/submap.js +++ b/modules/ui/submap.js @@ -120,7 +120,8 @@ window.UISubmap = (function () { rescaleStyles: checked("submapRescaleStyles"), smoothHeightMap: scale > 2, inverse: (x, y) => [x / origScale + x0, y / origScale + y0], - projection: (x, y) => [(x - x0) * origScale, (y - y0) * origScale] + projection: (x, y) => [(x - x0) * origScale, (y - y0) * origScale], + scale: origScale, }; // converting map position on the planet