check lakes before depressiong fill

This commit is contained in:
Azgaar 2021-06-09 00:24:57 +03:00
parent e7cf6e4f5a
commit 234814ee56
3 changed files with 39 additions and 3 deletions

View file

@ -45,7 +45,7 @@
delete feature.shoreline;
delete feature.outCell;
delete feature.closed;
feature.height = rn(feature.height);
feature.height = rn(feature.height, 3);
const inlets = feature.inlets?.filter(r => pack.rivers.find(river => river.i === r));
if (!inlets || !inlets.length) delete feature.inlets;