1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Fix incorrect handling of storyboard events with end_time before start_time

This commit is contained in:
Dean Herbert 2022-11-07 12:25:36 +09:00
parent 93f84ece0d
commit 6085120dc5

View File

@ -28,8 +28,7 @@ namespace osu.Game.Storyboards
{
if (endTime < startTime)
{
(startTime, endTime) = (endTime, startTime);
(startValue, endValue) = (endValue, startValue);
endTime = startTime;
}
commands.Add(new TypedCommand { Easing = easing, StartTime = startTime, EndTime = endTime, StartValue = startValue, EndValue = endValue });