mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 10:03:05 +08:00
Move transition variable back to being local to function
This commit is contained in:
parent
9194fd8dfe
commit
96191fc3ce
@ -268,8 +268,6 @@ namespace osu.Game.Rulesets.Catch.UI
|
||||
/// </summary>
|
||||
public bool HyperDashing => hyperDashModifier != 1;
|
||||
|
||||
private const float hyperdash_transition_length = 180;
|
||||
|
||||
/// <summary>
|
||||
/// Set hyperdash state.
|
||||
/// </summary>
|
||||
@ -277,6 +275,8 @@ namespace osu.Game.Rulesets.Catch.UI
|
||||
/// <param name="targetPosition">When this catcher crosses this position, this catcher ends hyperdashing.</param>
|
||||
public void SetHyperdashState(double modifier = 1, float targetPosition = -1)
|
||||
{
|
||||
const float hyperdash_transition_length = 180;
|
||||
|
||||
bool previouslyHyperDashing = HyperDashing;
|
||||
if (modifier <= 1 || X == targetPosition)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user