mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 21:52:55 +08:00
Add support for weird storyboards which have backwards events
Closes https://github.com/ppy/osu/issues/20632. Not adding test coverage because this is just weird.
This commit is contained in:
parent
e57819d687
commit
28185178d6
@ -27,7 +27,10 @@ namespace osu.Game.Storyboards
|
||||
public void Add(Easing easing, double startTime, double endTime, T startValue, T endValue)
|
||||
{
|
||||
if (endTime < startTime)
|
||||
return;
|
||||
{
|
||||
(startTime, endTime) = (endTime, startTime);
|
||||
(startValue, endValue) = (endValue, startValue);
|
||||
}
|
||||
|
||||
commands.Add(new TypedCommand { Easing = easing, StartTime = startTime, EndTime = endTime, StartValue = startValue, EndValue = endValue });
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user