mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:17:23 +08:00
Clarify speedRequired
This commit is contained in:
parent
c723ec5a9d
commit
53a7d919c7
@ -43,7 +43,8 @@ namespace osu.Game.Rulesets.Catch.Replays
|
||||
float positionChange = Math.Abs(lastPosition - h.X);
|
||||
double timeAvailable = h.StartTime - lastTime;
|
||||
|
||||
//So we can either make it there without a dash or not.
|
||||
// So we can either make it there without a dash or not.
|
||||
// If positionChange is 0, we don't need to move so speedRequired should also be 0 (could be NaN if timeAvailable is 0 too)
|
||||
double speedRequired = positionChange == 0 ? 0 : positionChange / timeAvailable;
|
||||
|
||||
bool dashRequired = speedRequired > movement_speed;
|
||||
|
Loading…
Reference in New Issue
Block a user