mirror of
https://github.com/ppy/osu.git
synced 2026-05-31 01:50:20 +08:00
Fix yet another incorrect threshold check in stacking code
This commit is contained in:
@@ -27,7 +27,7 @@ namespace osu.Game.Rulesets.Osu.Tests
|
||||
[TestCase("multi-segment-slider")]
|
||||
[TestCase("nan-slider")]
|
||||
[TestCase("1124896")]
|
||||
// [TestCase("1341554")] TODO: investigate later
|
||||
[TestCase("1341554")]
|
||||
[TestCase("2593923")]
|
||||
// [TestCase("2730824")] TODO: investigate later
|
||||
// [TestCase("4235513")] TODO: investigate later
|
||||
|
||||
@@ -151,7 +151,10 @@ namespace osu.Game.Rulesets.Osu.Beatmaps
|
||||
|
||||
double endTime = objectN.GetEndTime();
|
||||
|
||||
if (objectI.StartTime - endTime > stackThreshold)
|
||||
// truncation to integer is required to match stable
|
||||
// compare https://github.com/peppy/osu-stable-reference/blob/08e3dafd525934cf48880b08e91c24ce4ad8b761/osu!/GameplayElements/HitObjectManager.cs#L1725
|
||||
// - both quantities being subtracted there are integers
|
||||
if ((int)objectI.StartTime - (int)endTime > stackThreshold)
|
||||
// We are no longer within stacking range of the previous object.
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user