mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
fix: load temp setting from .map file
This commit is contained in:
parent
03ffc5cadb
commit
9b80e5f6cf
2 changed files with 5 additions and 7 deletions
|
|
@ -636,10 +636,4 @@ export function resolveVersionConflicts(version) {
|
|||
if (coa?.shield === "state") delete coa.shield;
|
||||
});
|
||||
}
|
||||
|
||||
if (version < 1.89) {
|
||||
//May need a major bump
|
||||
options.temperatureNorthPole = +temperatureNorthPoleInput.value;
|
||||
options.temperatureSouthPole = +temperatureNorthPoleInput.value;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -218,9 +218,13 @@ async function parseLoadedData(data) {
|
|||
if (settings[13]) urbanization = urbanizationInput.value = urbanizationOutput.value = settings[13];
|
||||
if (settings[14]) mapSizeInput.value = mapSizeOutput.value = minmax(settings[14], 1, 100);
|
||||
if (settings[15]) latitudeInput.value = latitudeOutput.value = minmax(settings[15], 0, 100);
|
||||
// setting 16 and 17 (temperature) are moved to options
|
||||
if (settings[18]) precInput.value = precOutput.value = settings[18];
|
||||
|
||||
if (settings[19]) options = JSON.parse(settings[19]);
|
||||
// setting 16 and 17 (temperature) are part of options now
|
||||
if (settings[16]) options.temperatureEquator = Number(settings[16]);
|
||||
if (settings[17]) options.temperatureNorthPole = options.temperatureSouthPole = Number(settings[17]);
|
||||
|
||||
if (settings[20]) mapName.value = settings[20];
|
||||
if (settings[21]) hideLabels.checked = +settings[21];
|
||||
if (settings[22]) stylePreset.value = settings[22];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue