Skip to content

Commit e0e1d32

Browse files
committed
fix: missing shoreline
1 parent f0712f6 commit e0e1d32

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

public/modules/dynamic/auto-update.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,9 @@ export function resolveVersionConflicts(mapVersion) {
397397
const height = (f.height - 18) ** heightExponentInput.value;
398398
const evaporation = ((700 * (f.temp + 0.006 * height)) / 50 + 75) / (80 - f.temp);
399399
f.evaporation = rn(evaporation * f.cells);
400+
if (!f.shoreline) {
401+
f.shoreline = unique(f.vertices.flatMap(v => pack.vertices.c[v].filter(c => pack.cells.h[c] >= 20)));
402+
}
400403
f.name = f.name || Lakes.getName(f);
401404
delete f.river;
402405
}

public/modules/io/load.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ async function parseLoadedData(data, mapVersion) {
474474

475475
{
476476
// dynamically import and run auto-update script
477-
const {resolveVersionConflicts} = await import("../dynamic/auto-update.js?v=1.113.0");
477+
const {resolveVersionConflicts} = await import("../dynamic/auto-update.js?v=1.116.1");
478478
resolveVersionConflicts(mapVersion);
479479
}
480480

public/versioning.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* For the changes that may be interesting to end users, update the `latestPublicChanges` array below (new changes on top).
1717
*/
1818

19-
const VERSION = "1.116.0";
19+
const VERSION = "1.116.1";
2020
if (parseMapVersion(VERSION) !== VERSION) alert("versioning.js: Invalid format or parsing function");
2121

2222
{

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8602,7 +8602,7 @@
86028602
<script defer src="libs/rgbquant.min.js"></script>
86038603
<script defer src="libs/jquery.ui.touch-punch.min.js"></script>
86048604
<script defer src="modules/io/save.js?v=1.113.8"></script>
8605-
<script defer src="modules/io/load.js?v=1.115.0"></script>
8605+
<script defer src="modules/io/load.js?v=1.116.1"></script>
86068606
<script defer src="modules/io/cloud.js?v=1.114.0"></script>
86078607
<script defer src="modules/io/export.js?v=1.112.2"></script>
86088608
</body>

0 commit comments

Comments
 (0)