1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 19:32:55 +08:00

Move mobile check earlier to avoid unnecessary looping

This commit is contained in:
Dean Herbert 2023-12-15 19:15:25 +09:00
parent 456916f680
commit eb5a8284f1
No known key found for this signature in database

View File

@ -106,7 +106,7 @@ namespace osu.Game.Rulesets.Mania.UI
private void updateMobileSizing()
{
if (!IsLoaded)
if (!IsLoaded || !RuntimeInfo.IsMobile)
return;
for (int i = 0; i < stageDefinition.Columns; i++)