Make clickmap lookups use the sprite tree (#13275)

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Leon Friedrich
2023-01-05 18:29:27 +13:00
committed by GitHub
parent edd90e750b
commit bf2ae6294d
8 changed files with 29 additions and 28 deletions

View File

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