]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
Change server's player sorting algorithm to work as the scoreboard's one, so it doesn...
authorterencehill <piuntn@gmail.com>
Fri, 27 May 2022 20:49:13 +0000 (22:49 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 28 May 2022 12:06:04 +0000 (14:06 +0200)
commiteae1ed4dcfb62df8470de356ff78db36f94542f1
treec908053d138d8f11d5e549fbac12c0748fb2aa18
parentb6091ccd32e2fbddee57bdddf943ebbc035842f0
Change server's player sorting algorithm to work as the scoreboard's one, so it doesn't scan all score fields but stops at the first mismatch. It required inverting score registration order and avoiding sorting scores alphabetically. While at it I tweaked score registration order a little bit.

Remove hardcoded priority list (sb_extra_sorting_field) from scoreboard's algorithm, score registration order can be used now.
qcsrc/client/hud/panel/scoreboard.qc
qcsrc/common/scores.qh
qcsrc/server/scores.qc