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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user