From ea72761838e7ec65923661829e1ce95413277958 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 29 Nov 2008 02:37:38 +0000 Subject: [PATCH] fixed sorting direction git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3795 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/serverbrowser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/serverbrowser.cpp b/source/src/serverbrowser.cpp index 169597b3..3a2b2a8b 100644 --- a/source/src/serverbrowser.cpp +++ b/source/src/serverbrowser.cpp @@ -467,7 +467,7 @@ static const char *srvsortstr(int n) int sicompare(serverinfo **ap, serverinfo **bp) { serverinfo *a = *ap, *b = *bp; - int dir = serversortdir ? 1 : -1; + int dir = serversortdir ? -1 : 1; if((a->protocol==PROTOCOL_VERSION) > (b->protocol==PROTOCOL_VERSION)) return -dir; if((b->protocol==PROTOCOL_VERSION) > (a->protocol==PROTOCOL_VERSION)) return dir; if(!a->numplayers && b->numplayers) return dir;