mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-16 17:31:24 +01:00
restore river cells of load
This commit is contained in:
parent
467c9c2a9b
commit
a643f30cb0
4 changed files with 7 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,2 +1,2 @@
|
||||||
run_php_server.bat
|
.bat
|
||||||
.vscode
|
.vscode
|
||||||
2
LICENSE
2
LICENSE
|
|
@ -1,6 +1,6 @@
|
||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright 2018-2020 Max Ganiev (Azgaar), azgaar.fmg@yandex.by
|
Copyright 2017-2021 Max Haniyeu (Azgaar), azgaar.fmg@yandex.com
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ async function addFonts(url) {
|
||||||
function loadUsedFonts() {
|
function loadUsedFonts() {
|
||||||
const fontsInUse = getFontsList(svg);
|
const fontsInUse = getFontsList(svg);
|
||||||
const fontsToLoad = fontsInUse.filter(font => !fonts.includes(font));
|
const fontsToLoad = fontsInUse.filter(font => !fonts.includes(font));
|
||||||
if (fontsToLoad) {
|
if (fontsToLoad?.length) {
|
||||||
const url = "https://fonts.googleapis.com/css?family=" + fontsToLoad.join("|");
|
const url = "https://fonts.googleapis.com/css?family=" + fontsToLoad.join("|");
|
||||||
addFonts(url);
|
addFonts(url);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -727,6 +727,10 @@ function parseLoadedData(data) {
|
||||||
|
|
||||||
river.cells = Array.from(riverCells);
|
river.cells = Array.from(riverCells);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pack.cells.i.forEach(i => {
|
||||||
|
if (pack.cells.r[i] && pack.cells.h[i] < 20) pack.cells.r[i] = 0;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue