1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:07:23 +08:00

Remove unneeded checks against h.StartTime

This commit is contained in:
HoLLy 2019-06-15 19:40:56 +02:00
parent 4d690a2b14
commit c723ec5a9d

View File

@ -46,8 +46,8 @@ namespace osu.Game.Rulesets.Catch.Replays
//So we can either make it there without a dash or not.
double speedRequired = positionChange == 0 ? 0 : positionChange / timeAvailable;
bool dashRequired = speedRequired > movement_speed && h.StartTime != 0;
bool impossibleJump = speedRequired > movement_speed * 2 && h.StartTime != 0;
bool dashRequired = speedRequired > movement_speed;
bool impossibleJump = speedRequired > movement_speed * 2;
// todo: get correct catcher size, based on difficulty CS.
const float catcher_width_half = CatcherArea.CATCHER_SIZE / CatchPlayfield.BASE_WIDTH * 0.3f * 0.5f;