mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 15:33:05 +08:00
Simplify place calculation
This commit is contained in:
parent
14c471fe5d
commit
4cf5968026
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user