mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Fix System.ArgumentException
caused by sliders bigger than the playfield
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user