@@ -429,7 +429,7 @@ public IEnumerable<EntityUid> GetEntitiesInArc(
429
429
float arcWidth ,
430
430
LookupFlags flags = DefaultFlags )
431
431
{
432
- var position = coordinates . ToMap ( EntityManager , _transform ) ;
432
+ var position = _transform . ToMapCoordinates ( coordinates ) ;
433
433
434
434
return GetEntitiesInArc ( position , range , direction , arcWidth , flags ) ;
435
435
}
@@ -632,7 +632,7 @@ public bool AnyEntitiesIntersecting(EntityCoordinates coordinates, LookupFlags f
632
632
if ( ! coordinates . IsValid ( EntityManager ) )
633
633
return false ;
634
634
635
- var mapPos = coordinates . ToMap ( EntityManager , _transform ) ;
635
+ var mapPos = _transform . ToMapCoordinates ( coordinates ) ;
636
636
return AnyEntitiesIntersecting ( mapPos , flags ) ;
637
637
}
638
638
@@ -641,13 +641,13 @@ public bool AnyEntitiesInRange(EntityCoordinates coordinates, float range, Looku
641
641
if ( ! coordinates . IsValid ( EntityManager ) )
642
642
return false ;
643
643
644
- var mapPos = coordinates . ToMap ( EntityManager , _transform ) ;
644
+ var mapPos = _transform . ToMapCoordinates ( coordinates ) ;
645
645
return AnyEntitiesInRange ( mapPos , range , flags ) ;
646
646
}
647
647
648
648
public HashSet < EntityUid > GetEntitiesIntersecting ( EntityCoordinates coordinates , LookupFlags flags = DefaultFlags )
649
649
{
650
- var mapPos = coordinates . ToMap ( EntityManager , _transform ) ;
650
+ var mapPos = _transform . ToMapCoordinates ( coordinates ) ;
651
651
return GetEntitiesIntersecting ( mapPos , flags ) ;
652
652
}
653
653
@@ -660,7 +660,7 @@ public HashSet<EntityUid> GetEntitiesInRange(EntityCoordinates coordinates, floa
660
660
661
661
public void GetEntitiesInRange ( EntityCoordinates coordinates , float range , HashSet < EntityUid > entities , LookupFlags flags = DefaultFlags )
662
662
{
663
- var mapPos = coordinates . ToMap ( EntityManager , _transform ) ;
663
+ var mapPos = _transform . ToMapCoordinates ( coordinates ) ;
664
664
665
665
if ( mapPos . MapId == MapId . Nullspace )
666
666
return ;
0 commit comments