1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-23 03:03:16 +08:00

Rename buzz variable per review

This commit is contained in:
Dean Herbert 2025-02-10 18:05:08 +09:00
parent d4ce712672
commit 340e081965
No known key found for this signature in database

View File

@ -28,7 +28,7 @@ namespace osu.Game.Rulesets.Catch.Difficulty.Skills
private float lastDistanceMoved; private float lastDistanceMoved;
private float lastExactDistanceMoved; private float lastExactDistanceMoved;
private double lastStrainTime; private double lastStrainTime;
private bool isBuzzSliderTriggered; private bool isInBuzzSection;
/// <summary> /// <summary>
/// The speed multiplier applied to the player's catcher. /// The speed multiplier applied to the player's catcher.
@ -107,14 +107,14 @@ namespace osu.Game.Rulesets.Catch.Difficulty.Skills
// To achieve that, we need to store the exact distances (distance ignoring absolute_player_positioning_error and normalized_hitobject_radius) // 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 (Math.Abs(exactDistanceMoved) <= HalfCatcherWidth * 2 && exactDistanceMoved == -lastExactDistanceMoved && catchCurrent.StrainTime == lastStrainTime)
{ {
if (isBuzzSliderTriggered) if (isInBuzzSection)
distanceAddition = 0; distanceAddition = 0;
else else
isBuzzSliderTriggered = true; isInBuzzSection = true;
} }
else else
{ {
isBuzzSliderTriggered = false; isInBuzzSection = false;
} }
lastPlayerPosition = playerPosition; lastPlayerPosition = playerPosition;