mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
river type - fix fork type selection
This commit is contained in:
parent
27d460ce2f
commit
50f497c62a
5 changed files with 58 additions and 34 deletions
|
|
@ -422,7 +422,6 @@
|
|||
if (d % 6 !== 0) return;
|
||||
for (const l of d3.range(i)) {
|
||||
const min = cells.c[cur][d3.scan(cells.c[cur], (a, b) => cells.h[a] - cells.h[b])]; // downhill cell
|
||||
//debug.append("circle").attr("cx", p[min][0]).attr("cy", p[min][1]).attr("r", 1);
|
||||
cells.h[min] = (cells.h[cur] * 2 + cells.h[min]) / 3;
|
||||
cur = min;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue