1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:17:23 +08:00

Fix System.ArgumentException caused by sliders bigger than the playfield

This commit is contained in:
Pasi4K5 2021-06-04 16:50:27 +02:00
parent 6357d1363c
commit 32e41048ff

View File

@ -173,6 +173,9 @@ namespace osu.Game.Rulesets.Osu.Mods
pos = slider.Path.PositionAt(1);
updateMargin();
minMargin.Left = Math.Min(minMargin.Left, OsuPlayfield.BASE_SIZE.X - minMargin.Right);
minMargin.Top = Math.Min(minMargin.Top, OsuPlayfield.BASE_SIZE.Y - minMargin.Bottom);
return minMargin;
void updateMargin()