1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 20:07:25 +08:00

Fix weird conditional

This commit is contained in:
Dean Herbert 2022-09-27 20:09:21 +09:00
parent a9088d9231
commit 58217b6839

View File

@ -79,7 +79,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
{
base.Update();
if (timeline == null || !(DrawWidth > 0)) return;
if (timeline == null || DrawWidth <= 0) return;
(float, float) newRange = (
(ToLocalSpace(timeline.ScreenSpaceDrawQuad.TopLeft).X - PointVisualisation.MAX_WIDTH * 2) / DrawWidth * Content.RelativeChildSize.X,