mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
remove all rivers - fix
This commit is contained in:
parent
76c787b6e9
commit
ae62755a76
2 changed files with 40 additions and 20 deletions
|
|
@ -603,6 +603,7 @@ function addRiverOnClick() {
|
|||
oldRiverCells.forEach(cell => {
|
||||
if (h[cell] > h[min]) {
|
||||
cells.r[cell] = 0;
|
||||
cells.fl[cell] = grid.cells.prec[cells.g[cell]];
|
||||
} else {
|
||||
riverCells.push(cell);
|
||||
cells.fl[cell] += cells.fl[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue