mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-12 09:09:09 +00:00
If a server is compatible, it falls back to sorting by clients. This used to be in reverse, so full servers are on top. With the codechange commit, this was removed by accident, and as such empty servers were on top. This is silly.
This commit is contained in:
@@ -330,10 +330,9 @@ protected:
|
|||||||
if (r == 0) r = b->info.compatible - a->info.compatible;
|
if (r == 0) r = b->info.compatible - a->info.compatible;
|
||||||
/* Passworded servers should be below unpassworded servers */
|
/* Passworded servers should be below unpassworded servers */
|
||||||
if (r == 0) r = a->info.use_password - b->info.use_password;
|
if (r == 0) r = a->info.use_password - b->info.use_password;
|
||||||
/* Finally sort on the number of clients of the server */
|
|
||||||
if (r == 0) return NGameClientSorter(a, b);
|
|
||||||
|
|
||||||
return r < 0;
|
/* Finally sort on the number of clients of the server in reverse order. */
|
||||||
|
return (r != 0) ? r < 0: !NGameClientSorter(a, b);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Sort the server list */
|
/** Sort the server list */
|
||||||
|
Reference in New Issue
Block a user