Various sharedsystem spring cleaning (#36200)
* Various shared system warnings cleanup * More shared system warnings cleanup * Rearranging changes * Using correct transform for unbuckle * Small changes * Revert buckle change * Update Content.Shared/Ghost/SharedGhostSystem.cs --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
@@ -517,13 +517,12 @@ public abstract class SharedActionsSystem : EntitySystem
|
||||
// even if we don't check for obstructions, we may still need to check the range.
|
||||
var xform = Transform(user);
|
||||
|
||||
if (xform.MapID != coords.GetMapId(EntityManager))
|
||||
if (xform.MapID != _transformSystem.GetMapId(coords))
|
||||
return false;
|
||||
|
||||
if (range <= 0)
|
||||
return true;
|
||||
|
||||
return coords.InRange(EntityManager, _transformSystem, Transform(user).Coordinates, range);
|
||||
return _transformSystem.InRange(coords, xform.Coordinates, range);
|
||||
}
|
||||
|
||||
return _interactionSystem.InRangeUnobstructed(user, coords, range: range);
|
||||
|
||||
Reference in New Issue
Block a user