mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 13:22:55 +08:00
Merge pull request #25787 from cl8n/fix-mania-column-color
Fix fallback column colors for legacy split stage mania skins
This commit is contained in:
commit
b0814400c2
@ -34,7 +34,9 @@ namespace osu.Game.Rulesets.Mania.Skinning.Legacy
|
||||
FallbackColumnIndex = "S";
|
||||
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";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user