diff options
author | rubidium <rubidium@openttd.org> | 2012-01-01 22:35:19 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2012-01-01 22:35:19 +0000 |
commit | 6ed84aff8d4f96f28c1b65b54f209803de7e23c3 (patch) | |
tree | 2eea877a7d46990624902c63c84e79e01b932aed /src/network | |
parent | 9a921fd0ae29e63de75524fa2f41a7beac11184d (diff) | |
download | openttd-6ed84aff8d4f96f28c1b65b54f209803de7e23c3.tar.xz |
(svn r23710) -Change: make the default secondary sort method for the server list the number of clients instead of the name
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 539087ff8..d6fc35c28 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -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; } |