1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:07:52 +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,