Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
chemicalcrux
/
macrovision
Segui
1
Vota
0
Forka
0
Codice
Problemi
5
Pull Requests
0
Rilasci
10
Wiki
Attività
Sfoglia il codice sorgente
Fix rulers getting offset when attached to non-default-scaled entities
master
Fen Dweller
4 anni fa
parent
4e9718746d
commit
4576cc9a29
1 ha cambiato i file
con
3 aggiunte
e
3 eliminazioni
Visualizzazione separata
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-3
macrovision.js
+ 3
- 3
macrovision.js
Vedi File
@@ -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
}
Write
Preview
Loading…
Annulla
Salva