Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/kionell/osu-classes
Browse files Browse the repository at this point in the history
  • Loading branch information
kionell committed Feb 3, 2023
2 parents 96e58f6 + 45c812a commit e3632e5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2022 Kionell
Copyright (c) 2023 Kionell

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand All @@ -17,4 +17,4 @@ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "osu-classes",
"version": "2.1.0",
"version": "2.1.1",
"description": "Basic classes, interfaces and utils for creating new osu! rulesets",
"exports": {
"import": "./lib/index.mjs",
Expand Down
8 changes: 7 additions & 1 deletion src/Objects/Path/PathApproximator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,13 @@ export class PathApproximator {

const points = Math.ceil(Math.fround(pr.thetaRange / angle));

amountPoints = Math.max(2, points);
/**
* Edge case for beatmaps with huge radius and infinite points:
* https://osu.ppy.sh/beatmapsets/1235519#osu/2568364
*/
const validPoints = !isFinite(points) ? -(2 ** 31) : points;

amountPoints = Math.max(2, validPoints);
}

const output: Vector2[] = [];
Expand Down

0 comments on commit e3632e5

Please sign in to comment.