Corrects for singularity distortion. (#13925)

This commit is contained in:
TemporalOroboros
2023-08-12 16:43:07 -07:00
committed by GitHub
parent f3c319df4b
commit 3b02d461a2
17 changed files with 96 additions and 26 deletions

View File

@@ -117,7 +117,7 @@ public sealed class InteractionOutlineSystem : EntitySystem
if (_uiManager.CurrentlyHovered is IViewportControl vp
&& _inputManager.MouseScreenPosition.IsValid)
{
var mousePosWorld = vp.ScreenToMap(_inputManager.MouseScreenPosition.Position);
var mousePosWorld = vp.PixelToMap(_inputManager.MouseScreenPosition.Position);
entityToClick = screen.GetClickedEntity(mousePosWorld);
if (vp is ScalingViewport svp)