From 1e0fc029f6b02269565d775d0824d2fb3b31e8eb Mon Sep 17 00:00:00 2001 From: Maxime Lapointe Date: Sat, 4 Jul 2020 22:14:47 -0400 Subject: [PATCH] Fix reset map settings saving the new zone offset Before this fix, clicking the reset would actually save the reset zone offset in the currently selected map preset. --- main.js | 1 - 1 file changed, 1 deletion(-) diff --git a/main.js b/main.js index 3e769e64..a27f4e47 100644 --- a/main.js +++ b/main.js @@ -5135,7 +5135,6 @@ function resetAdvMaps(fromClick) { //level var levelValue = game.global.world; if (!fromClick && preset.offset != 'd') levelValue += preset.offset; - if (fromClick) preset.offset = 'd'; document.getElementById("mapLevelInput").value = levelValue; //sliders var inputs = ["loot", "difficulty", "size"];