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:
parent
6357d1363c
commit
32e41048ff
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user