diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-03-29 17:20:21 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-03-29 17:20:21 +0000 |
| commit | 370cbbe79f8dbc8ef00dca28e27480c05789670f (patch) | |
| tree | f8adbab00c2a8e8e506f0f47beb753c47d592fb2 /src/engine/e_if_client.h | |
| parent | fcd9709c36ff014c270ef14f236e0141c8266695 (diff) | |
| download | zcatch-370cbbe79f8dbc8ef00dca28e27480c05789670f.tar.gz zcatch-370cbbe79f8dbc8ef00dca28e27480c05789670f.zip | |
server browser improvements. much improved quick search. sorted the player list.
Diffstat (limited to 'src/engine/e_if_client.h')
| -rw-r--r-- | src/engine/e_if_client.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/engine/e_if_client.h b/src/engine/e_if_client.h index 3f490079..e06d3e6b 100644 --- a/src/engine/e_if_client.h +++ b/src/engine/e_if_client.h @@ -51,7 +51,10 @@ enum BROWSESORT_MAP, BROWSESORT_GAMETYPE, BROWSESORT_PROGRESSION, - BROWSESORT_NUMPLAYERS + BROWSESORT_NUMPLAYERS, + + BROWSEQUICK_SERVERNAME=1, + BROWSEQUICK_PLAYERNAME=2 }; /* @@ -59,6 +62,15 @@ enum */ /* + Structure: SERVER_INFO_PLAYER +*/ +typedef struct +{ + char name[48]; + int score; +} SERVER_INFO_PLAYER; + +/* Structure: SERVER_INFO */ typedef struct @@ -66,6 +78,8 @@ typedef struct int sorted_index; int server_index; + int quicksearch_hit; + int progression; int game_type; int max_players; @@ -76,8 +90,7 @@ typedef struct char map[32]; char version[32]; char address[24]; - char player_names[16][48]; - int player_scores[16]; + SERVER_INFO_PLAYER players[16]; } SERVER_INFO; /* |