diff options
Diffstat (limited to 'src/client/cl_ui.c')
-rw-r--r-- | src/client/cl_ui.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/client/cl_ui.c b/src/client/cl_ui.c index 3b35709a..91c1c6c1 100644 --- a/src/client/cl_ui.c +++ b/src/client/cl_ui.c @@ -410,25 +410,25 @@ static int LAN_CompareServers( int source, int sortKey, int sortDir, int s1, int res = 0; switch( sortKey ) { case SORT_HOST: - { - char hostName1[ MAX_HOSTNAME_LENGTH ]; - char hostName2[ MAX_HOSTNAME_LENGTH ]; - char *p; - int i; - - for( p = server1->hostName, i = 0; *p != '\0'; p++ ) - { - if( Q_isalpha( *p ) ) - hostName1[ i++ ] = *p; - } - hostName1[ i ] = '\0'; - - for( p = server2->hostName, i = 0; *p != '\0'; p++ ) - { - if( Q_isalpha( *p ) ) - hostName2[ i++ ] = *p; - } - hostName2[ i ] = '\0'; + { + char hostName1[ MAX_HOSTNAME_LENGTH ]; + char hostName2[ MAX_HOSTNAME_LENGTH ]; + char *p; + int i; + + for( p = server1->hostName, i = 0; *p != '\0'; p++ ) + { + if( Q_isalpha( *p ) ) + hostName1[ i++ ] = *p; + } + hostName1[ i ] = '\0'; + + for( p = server2->hostName, i = 0; *p != '\0'; p++ ) + { + if( Q_isalpha( *p ) ) + hostName2[ i++ ] = *p; + } + hostName2[ i ] = '\0'; res = Q_stricmp( hostName1, hostName2 ); } |