mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 23:53:51 +09:00
Fixed tests failing
This commit is contained in:
@ -85,7 +85,7 @@ namespace osu.Game.Rulesets.Catch.Objects
|
|||||||
AddNested(new TinyDroplet
|
AddNested(new TinyDroplet
|
||||||
{
|
{
|
||||||
StartTime = t + lastEvent.Value.Time,
|
StartTime = t + lastEvent.Value.Time,
|
||||||
X = EffectiveX + ClampToPlayField(Path.PositionAt(
|
X = ClampToPlayField(EffectiveX + Path.PositionAt(
|
||||||
lastEvent.Value.PathProgress + (t / sinceLastTick) * (e.PathProgress - lastEvent.Value.PathProgress)).X),
|
lastEvent.Value.PathProgress + (t / sinceLastTick) * (e.PathProgress - lastEvent.Value.PathProgress)).X),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -103,7 +103,7 @@ namespace osu.Game.Rulesets.Catch.Objects
|
|||||||
{
|
{
|
||||||
Samples = dropletSamples,
|
Samples = dropletSamples,
|
||||||
StartTime = e.Time,
|
StartTime = e.Time,
|
||||||
X = EffectiveX + ClampToPlayField(Path.PositionAt(e.PathProgress).X),
|
X = ClampToPlayField(EffectiveX + Path.PositionAt(e.PathProgress).X),
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -114,14 +114,14 @@ namespace osu.Game.Rulesets.Catch.Objects
|
|||||||
{
|
{
|
||||||
Samples = this.GetNodeSamples(nodeIndex++),
|
Samples = this.GetNodeSamples(nodeIndex++),
|
||||||
StartTime = e.Time,
|
StartTime = e.Time,
|
||||||
X = EffectiveX + ClampToPlayField(Path.PositionAt(e.PathProgress).X),
|
X = ClampToPlayField(EffectiveX + Path.PositionAt(e.PathProgress).X),
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public float EndX => EffectiveX + this.CurvePositionAt(1).X;
|
public float EndX => ClampToPlayField(EffectiveX + this.CurvePositionAt(1).X);
|
||||||
|
|
||||||
public float ClampToPlayField(float value) => Math.Clamp(value, 0, CatchPlayfield.WIDTH);
|
public float ClampToPlayField(float value) => Math.Clamp(value, 0, CatchPlayfield.WIDTH);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user