Skip to content

Commit

Permalink
fix variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
Shegare committed Dec 2, 2024
1 parent 4eab173 commit def08d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Content.Server/Stories/Garrote/GarroteSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ private void OnGarroteDoAfter(EntityUid uid, GarroteComponent comp, GarroteDoAft
/// <remarks>
/// Does not check for the presence of TransformComponent.
/// </remarks>
private bool IsRightTargetDistance(TransformComponent user, TransformComponent target, float minUseDistance)
private bool IsRightTargetDistance(TransformComponent user, TransformComponent target, float maxUseDistance)
{
if (Math.Abs(user.LocalPosition.X - target.LocalPosition.X) <= minUseDistance
&& Math.Abs(user.LocalPosition.Y - target.LocalPosition.Y) <= minUseDistance)
if (Math.Abs(user.LocalPosition.X - target.LocalPosition.X) <= maxUseDistance
&& Math.Abs(user.LocalPosition.Y - target.LocalPosition.Y) <= maxUseDistance)
return true;
else
return false;
Expand Down

0 comments on commit def08d6

Please sign in to comment.