Fixed comment. Created static CatchArea.GetCatcheWidth method

This commit is contained in:
Hanamuke
2018-09-13 17:01:33 +02:00
parent 623f8bfaf5
commit 7d3380db66
3 changed files with 9 additions and 7 deletions

View File

@ -74,9 +74,6 @@ namespace osu.Game.Rulesets.Catch.Beatmaps
private void initialiseHyperDash(List<CatchHitObject> objects)
{
if (objects.Count == 0)
return;
List<CatchHitObject> objectWithDroplets = new List<CatchHitObject>();
foreach (var currentObject in objects)
@ -89,7 +86,7 @@ namespace osu.Game.Rulesets.Catch.Beatmaps
objectWithDroplets.Add((CatchHitObject)currentJuiceElement);
}
double halfCatcherWidth = CatcherArea.CATCHER_SIZE * objectWithDroplets[0].Scale / CatchPlayfield.BASE_WIDTH / 2;
double halfCatcherWidth = CatcherArea.GetCatcherSize(Beatmap.BeatmapInfo.BaseDifficulty) / 2;
int lastDirection = 0;
double lastExcess = halfCatcherWidth;