From fb53089d0f28c0919745b82962f5078da77da995 Mon Sep 17 00:00:00 2001 From: Nilles Date: Wed, 12 Sep 2018 22:36:21 -0400 Subject: [PATCH] Fixes issue # 128 where changing the relief icon type to mounts causes a giant icon to appear. --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index 4ffede90..5e1b9d94 100644 --- a/script.js +++ b/script.js @@ -3309,7 +3309,7 @@ function fantasyMap() { const cell = diagram.find(cx, cy).index; const height = cell !== undefined ? cells[cell].height : 50; elSelected.remove(); - elSelected = addReliefIcon(height, type, cx, cy); + elSelected = addReliefIcon(height / 100, type, cx, cy); elSelected.call(d3.drag().on("start", elementDrag)); });