fix: regenerate grid if seed is manually changed (1.88.02)

This commit is contained in:
Azgaar 2022-12-10 19:29:37 +03:00
parent 0b1a2048a7
commit 425325888e
6 changed files with 27 additions and 17 deletions

View file

@ -257,8 +257,8 @@ function testSpeaker() {
}
function generateMapWithSeed() {
if (optionsSeed.value == seed) return tip("The current map already has this seed", false, "error");
regeneratePrompt();
if (optionsSeed.value === seed) return tip("The current map already has this seed", false, "error");
regeneratePrompt({seed: optionsSeed.value});
}
function showSeedHistoryDialog() {
@ -288,7 +288,7 @@ function restoreSeed(id) {
if (locked("template")) unlock("template");
regeneratePrompt();
regeneratePrompt({seed});
}
function restoreDefaultZoomExtent() {