* Revert "Fix chat bubbles (#25643)" This reverts commit23d2c4d924. * Revert "Fixes obsolete Transform warnings in Content. (#25256)" This reverts commitf284b43ff6.
This commit is contained in:
@@ -165,7 +165,7 @@ public sealed class EventHorizonSystem : SharedEventHorizonSystem
|
||||
var range2 = range * range;
|
||||
var xformQuery = EntityManager.GetEntityQuery<TransformComponent>();
|
||||
var epicenter = _xformSystem.GetWorldPosition(xform, xformQuery);
|
||||
foreach (var entity in _lookup.GetEntitiesInRange(_xformSystem.GetMapCoordinates((uid, xform)), range, flags: LookupFlags.Uncontained))
|
||||
foreach (var entity in _lookup.GetEntitiesInRange(xform.MapPosition, range, flags: LookupFlags.Uncontained))
|
||||
{
|
||||
if (entity == uid)
|
||||
continue;
|
||||
@@ -295,7 +295,7 @@ public sealed class EventHorizonSystem : SharedEventHorizonSystem
|
||||
if (!Resolve(uid, ref xform) || !Resolve(uid, ref eventHorizon))
|
||||
return;
|
||||
|
||||
var mapPos = _xformSystem.GetMapCoordinates((uid, xform));
|
||||
var mapPos = xform.MapPosition;
|
||||
var box = Box2.CenteredAround(mapPos.Position, new Vector2(range, range));
|
||||
var circle = new Circle(mapPos.Position, range);
|
||||
var grids = new List<Entity<MapGridComponent>>();
|
||||
|
||||
Reference in New Issue
Block a user