From def08d6392c3dc70af48309c86659531c0604f1b Mon Sep 17 00:00:00 2001 From: Shegare <147345753+Shegare@users.noreply.github.com> Date: Mon, 2 Dec 2024 19:48:29 +0300 Subject: [PATCH] fix variable names --- Content.Server/Stories/Garrote/GarroteSystem.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Server/Stories/Garrote/GarroteSystem.cs b/Content.Server/Stories/Garrote/GarroteSystem.cs index 69a1ae8d14..e76f68d0e6 100644 --- a/Content.Server/Stories/Garrote/GarroteSystem.cs +++ b/Content.Server/Stories/Garrote/GarroteSystem.cs @@ -134,10 +134,10 @@ private void OnGarroteDoAfter(EntityUid uid, GarroteComponent comp, GarroteDoAft /// /// Does not check for the presence of TransformComponent. /// - 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;