prepare to merge, add comments, remove fluff

This commit is contained in:
Mészáros Gergely 2022-04-13 17:58:49 +02:00
parent f99edae5db
commit 7e02d40066
3 changed files with 25 additions and 20 deletions

View file

@ -35,13 +35,11 @@ window.Rivers = (function () {
TIME && console.timeEnd("generateRivers");
function drainWater() {
const pixel2 = distanceScale * distanceScale
//const MIN_FLUX_TO_FORM_RIVER = 10 * distanceScale;
const MIN_FLUX_TO_FORM_RIVER = 30;
const cellsNumberModifier = (pointsInput.dataset.cells / 10000) ** 0.25;
const prec = grid.cells.prec;
// const area = c => pack.cells.area[c] * pixel2;
const area = pack.cells.area;
const land = cells.i.filter(i => h[i] >= 20).sort((a, b) => h[b] - h[a]);
const lakeOutCells = Lakes.setClimateData(h);