Fixes issue # 128 where changing the relief icon type to mounts causes a giant icon to appear.

This commit is contained in:
Nilles 2018-09-12 22:36:21 -04:00
parent 0920b86eaa
commit fb53089d0f

View file

@ -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));
});