mirror of https://github.com/OpenTTD/OpenTTD
(svn r23710) -Change: make the default secondary sort method for the server list the number of clients instead of the name
parent
9a921fd0ae
commit
6ed84aff8d
|
@ -320,8 +320,8 @@ protected:
|
|||
if (r == 0) r = (*b)->info.compatible - (*a)->info.compatible;
|
||||
/* Passworded servers should be below unpassworded servers */
|
||||
if (r == 0) r = (*a)->info.use_password - (*b)->info.use_password;
|
||||
/* Finally sort on the name of the server */
|
||||
if (r == 0) r = NGameNameSorter(a, b);
|
||||
/* Finally sort on the number of clients of the server */
|
||||
if (r == 0) r = -NGameClientSorter(a, b);
|
||||
|
||||
return r;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue