forked from mirror/OpenTTD
(svn r23710) -Change: make the default secondary sort method for the server list the number of clients instead of the name
This commit is contained in:
@@ -320,8 +320,8 @@ 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 name of the server */
|
/* Finally sort on the number of clients of the server */
|
||||||
if (r == 0) r = NGameNameSorter(a, b);
|
if (r == 0) r = -NGameClientSorter(a, b);
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user