mirror of
https://github.com/ppy/osu
synced 2024-12-11 17:42:28 +00:00
Fix path getting misaligned with negative position values
This commit is contained in:
parent
21146c3501
commit
08ebc83a89
@ -7,6 +7,7 @@ using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics.Lines;
|
||||
using osu.Framework.Graphics.Performance;
|
||||
using osu.Game.Graphics;
|
||||
using osuTK;
|
||||
|
||||
namespace osu.Game.Rulesets.Osu.UI.ReplayAnalysis
|
||||
{
|
||||
@ -54,10 +55,19 @@ namespace osu.Game.Rulesets.Osu.UI.ReplayAnalysis
|
||||
{
|
||||
ClearVertices();
|
||||
|
||||
Vector2 min = Vector2.Zero;
|
||||
|
||||
foreach (var entry in aliveEntries)
|
||||
{
|
||||
AddVertex(entry.Position);
|
||||
if (entry.Position.X < min.X)
|
||||
min.X = entry.Position.X;
|
||||
|
||||
if (entry.Position.Y < min.Y)
|
||||
min.Y = entry.Position.Y;
|
||||
}
|
||||
|
||||
Position = min;
|
||||
}
|
||||
|
||||
private sealed class AimLinePointComparator : IComparer<AnalysisFrameEntry>
|
||||
|
Loading…
Reference in New Issue
Block a user