From 4576cc9a295d8a7126e5da02ef4ddee2cacad91b Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sat, 23 Oct 2021 17:09:41 -0400 Subject: [PATCH] Fix rulers getting offset when attached to non-default-scaled entities --- macrovision.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/macrovision.js b/macrovision.js index 1114322f..ed55041d 100644 --- a/macrovision.js +++ b/macrovision.js @@ -3111,12 +3111,12 @@ function entityRelativePosition(pos, entityElement) { const x = parseFloat(entityElement.dataset.x) const y = parseFloat(entityElement.dataset.y) - pos.x /= entity.scale - pos.y /= entity.scale - pos.x -= x pos.y -= y + pos.x /= entity.scale + pos.y /= entity.scale + return pos }