mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 04:32:57 +08:00
Add some comments where truncations were added
This commit is contained in:
parent
40ff95d586
commit
394ea73055
@ -247,6 +247,8 @@ namespace osu.Game.Rulesets.Catch.Beatmaps
|
||||
currentObject.DistanceToHyperDash = 0;
|
||||
|
||||
int thisDirection = nextObject.EffectiveX > currentObject.EffectiveX ? 1 : -1;
|
||||
|
||||
// Int truncation added to match osu!stable.
|
||||
double timeToNext = (int)nextObject.StartTime - (int)currentObject.StartTime - 1000f / 60f / 4; // 1/4th of a frame of grace time, taken from osu-stable
|
||||
double distanceToNext = Math.Abs(nextObject.EffectiveX - currentObject.EffectiveX) - (lastDirection == thisDirection ? lastExcess : halfCatcherWidth);
|
||||
float distanceToHyper = (float)(timeToNext * Catcher.BASE_DASH_SPEED - distanceToNext);
|
||||
|
@ -23,6 +23,7 @@ namespace osu.Game.Rulesets.Catch.Objects
|
||||
|
||||
private void createBananas(CancellationToken cancellationToken)
|
||||
{
|
||||
// Int truncation added to match osu!stable.
|
||||
int startTime = (int)StartTime;
|
||||
int endTime = (int)EndTime;
|
||||
float spacing = (float)(EndTime - StartTime);
|
||||
|
Loading…
Reference in New Issue
Block a user