diff --git a/main.js b/main.js index c2c4301a..75eba699 100644 --- a/main.js +++ b/main.js @@ -2,7 +2,7 @@ // https://github.com/Azgaar/Fantasy-Map-Generator "use strict"; -const version = "1.651"; // generator version1 +const version = "1.652"; // generator version1 document.title += " v" + version; // Switches to disable/enable logging features diff --git a/modules/heightmap-generator.js b/modules/heightmap-generator.js index 7fc70a6c..9d12a802 100644 --- a/modules/heightmap-generator.js +++ b/modules/heightmap-generator.js @@ -30,8 +30,8 @@ window.HeightmapGenerator = (function () { if (a1 === "Range") return addRange(a2, a3, a4, a5); if (a1 === "Trough") return addTrough(a2, a3, a4, a5); if (a1 === "Strait") return addStrait(a2, a3); - if (a1 === "Add") return modify(a3, a2, 1); - if (a1 === "Multiply") return modify(a3, 0, a2); + if (a1 === "Add") return modify(a3, +a2, 1); + if (a1 === "Multiply") return modify(a3, 0, +a2); if (a1 === "Smooth") return smooth(a2); }