replace obsolete IsGrid calls with HasComp<MapGridComponent> (#36729)

* replace obsolete IsGrid calls with HasComp<MapGridComponent>

* remove IMapManager dependency

* well would you look at that

* just look at it
This commit is contained in:
Kyle Tyo
2025-04-20 00:14:58 -04:00
committed by GitHub
parent a6d2b1f0b8
commit 2c54ec10c6
3 changed files with 8 additions and 3 deletions

View File

@@ -214,7 +214,7 @@ namespace Content.Shared.Movement.Systems
}
// If we went from grid -> grid OR grid -> map then snap the target to cardinal and lerp there.
// OR just rotate to zero (depending on cvar)
else if (relative != null && _mapManager.IsGrid(relative.Value))
else if (relative != null && MapGridQuery.HasComp(relative.Value))
{
if (CameraRotationLocked)
targetRotation = Angle.Zero;