1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 15:17:27 +08:00

Fix fallback column colors for legacy split stage mania skins

This commit is contained in:
clayton 2023-12-15 22:41:55 -08:00
parent 7caca905e3
commit f07771f59b
No known key found for this signature in database
GPG Key ID: 0E5962B8D84F9B2E

View File

@ -34,7 +34,9 @@ namespace osu.Game.Rulesets.Mania.Skinning.Legacy
FallbackColumnIndex = "S"; FallbackColumnIndex = "S";
else else
{ {
int distanceToEdge = Math.Min(Column.Index, (stage.Columns - 1) - Column.Index); // Account for cases like dual-stage (assume that all stages have the same column count for now).
int columnInStage = Column.Index % stage.Columns;
int distanceToEdge = Math.Min(columnInStage, (stage.Columns - 1) - columnInStage);
FallbackColumnIndex = distanceToEdge % 2 == 0 ? "1" : "2"; FallbackColumnIndex = distanceToEdge % 2 == 0 ? "1" : "2";
} }
} }