fixed sorting direction

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3795 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-11-29 02:37:38 +00:00
parent 61c6ed5f67
commit ea72761838
+1 -1
View File
@@ -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;