1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-16 10:52:55 +08:00

Merge pull request #10812 from nbvdkamp/allow-reversing-spinners

Allow spinners to be reversed
This commit is contained in:
Bartłomiej Dach 2020-11-13 20:25:21 +01:00 committed by GitHub
commit fc7b0cdced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,12 +45,12 @@ namespace osu.Game.Rulesets.Osu.Edit
public override bool HandleReverse()
{
var hitObjects = selectedMovableObjects;
var hitObjects = EditorBeatmap.SelectedHitObjects;
double endTime = hitObjects.Max(h => h.GetEndTime());
double startTime = hitObjects.Min(h => h.StartTime);
bool moreThanOneObject = hitObjects.Length > 1;
bool moreThanOneObject = hitObjects.Count > 1;
foreach (var h in hitObjects)
{