mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
fixed previous problems
This commit is contained in:
parent
865fa6e5d1
commit
a13206eb4f
4 changed files with 24 additions and 11 deletions
|
|
@ -350,7 +350,6 @@ function editCultures() {
|
|||
}
|
||||
|
||||
function applyCultureManualAssignent() {
|
||||
saveBreadCrumb();
|
||||
const changed = cults.select("#temp").selectAll("polygon");
|
||||
changed.each(function() {
|
||||
const i = +this.dataset.cell;
|
||||
|
|
@ -364,6 +363,7 @@ function editCultures() {
|
|||
refreshCulturesEditor();
|
||||
}
|
||||
exitCulturesManualAssignment();
|
||||
saveBreadCrumb("currentMap");
|
||||
}
|
||||
|
||||
function exitCulturesManualAssignment() {
|
||||
|
|
|
|||
|
|
@ -261,6 +261,6 @@ document.addEventListener("keydown", function(event) {
|
|||
else if (key === 56 || key === 104) zoom.scaleTo(svg, 8); // 8 to zoom to 8
|
||||
else if (key === 57 || key === 105) zoom.scaleTo(svg, 9); // 9 to zoom to 9
|
||||
|
||||
else if (ctrl && key === 90) {loadLastBreadCrumb(); undo.click();}// // Ctrl + "Z" to undo
|
||||
else if (ctrl && key === 90) { loadLastBreadCrumb(); }// // Ctrl + "Z" to undo undo.click();
|
||||
else if (ctrl && key === 89) redo.click(); // Ctrl + "Y" to redo
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue