1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-11 00:57:24 +08:00

Cancel slider generation when requested

Didn't notice a particular case with this one, just came up as I was
looking through code.
This commit is contained in:
Dan Balasescu 2025-03-03 14:19:38 +09:00
parent ad9a963bd0
commit 52dad09b20
No known key found for this signature in database

View File

@ -46,6 +46,8 @@ namespace osu.Game.Rulesets.Objects
for (int span = 0; span < spanCount; span++)
{
cancellationToken.ThrowIfCancellationRequested();
double spanStartTime = startTime + span * spanDuration;
bool reversed = span % 2 == 1;