Skip to content

Commit

Permalink
Rename buzz variable per review
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Feb 10, 2025
1 parent d4ce712 commit 340e081
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions osu.Game.Rulesets.Catch/Difficulty/Skills/Movement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class Movement : StrainDecaySkill
private float lastDistanceMoved;
private float lastExactDistanceMoved;
private double lastStrainTime;
private bool isBuzzSliderTriggered;
private bool isInBuzzSection;

/// <summary>
/// The speed multiplier applied to the player's catcher.
Expand Down Expand Up @@ -107,14 +107,14 @@ protected override double StrainValueOf(DifficultyHitObject current)
// To achieve that, we need to store the exact distances (distance ignoring absolute_player_positioning_error and normalized_hitobject_radius)
if (Math.Abs(exactDistanceMoved) <= HalfCatcherWidth * 2 && exactDistanceMoved == -lastExactDistanceMoved && catchCurrent.StrainTime == lastStrainTime)
{
if (isBuzzSliderTriggered)
if (isInBuzzSection)
distanceAddition = 0;
else
isBuzzSliderTriggered = true;
isInBuzzSection = true;
}
else
{
isBuzzSliderTriggered = false;
isInBuzzSection = false;
}

lastPlayerPosition = playerPosition;
Expand Down

0 comments on commit 340e081

Please sign in to comment.