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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user