* Revert "Fix chat bubbles (#25643)" This reverts commit23d2c4d924. * Revert "Fixes obsolete Transform warnings in Content. (#25256)" This reverts commitf284b43ff6.
This commit is contained in:
@@ -89,10 +89,6 @@ public sealed class NPCSteeringOverlay : Overlay
|
||||
|
||||
protected override void Draw(in OverlayDrawArgs args)
|
||||
{
|
||||
var xformSystem = _entManager.SystemOrNull<SharedTransformSystem>();
|
||||
if (xformSystem is null)
|
||||
return;
|
||||
|
||||
foreach (var (comp, mover, xform) in _entManager.EntityQuery<NPCSteeringComponent, InputMoverComponent, TransformComponent>(true))
|
||||
{
|
||||
if (xform.MapID != args.MapId)
|
||||
@@ -100,7 +96,7 @@ public sealed class NPCSteeringOverlay : Overlay
|
||||
continue;
|
||||
}
|
||||
|
||||
var (worldPos, worldRot) = xformSystem.GetWorldPositionRotation(xform);
|
||||
var (worldPos, worldRot) = xform.GetWorldPositionRotation();
|
||||
|
||||
if (!args.WorldAABB.Contains(worldPos))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user