mirror of
https://github.com/ppy/osu.git
synced 2026-05-30 06:39:53 +08:00
Simplify place calculation
This commit is contained in:
@@ -54,7 +54,7 @@ namespace osu.Game.Overlays.Rankings.Tables
|
||||
value.ForEach(_ => backgroundFlow.Add(new TableRowBackground()));
|
||||
|
||||
Columns = CreateHeaders();
|
||||
Content = value.Select((s, i) => CreateContent(page * items_per_page - (items_per_page - i), s)).ToArray().ToRectangular();
|
||||
Content = value.Select((s, i) => CreateContent((page - 1) * items_per_page + i, s)).ToArray().ToRectangular();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user