massive rework continues

This commit is contained in:
barrulus 2025-08-04 13:35:23 -04:00
parent d1b07fff01
commit 37391c8e8b
129 changed files with 4080 additions and 22216 deletions

View file

@ -26,11 +26,10 @@ function markup({distanceField, neighbors, start, increment, limit = utils.INT8_
// mark Grid features (ocean, lakes, islands) and calculate distance field
export function markupGrid(grid, config, utils) {
const {TIME, seed, aleaPRNG} = config;
const {rn} = utils;
const { TIME } = config.debug;
TIME && console.time("markupGrid");
Math.random = aleaPRNG(seed); // get the same result on heightmap edit in Erase mode
const {h: heights, c: neighbors, b: borderCells, i} = grid.cells;
const cellsNumber = i.length;
@ -299,4 +298,4 @@ export function specify(pack, grid, modules) {
return "freshwater";
}
}
}